mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#valdef-display-layout">
|
||||
<meta name="assert" content="This test checks that a layout() function works correctly with an @supports rule." />
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
#test {
|
||||
content: 'fail';
|
||||
}
|
||||
|
||||
@supports (display: layout(foo)) {
|
||||
#test {
|
||||
content: 'pass';
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div id="test"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
const element = document.getElementById('test');
|
||||
assert_equals(getComputedStyle(element).content, '"pass"');
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue