mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'
This commit is contained in:
parent
35e95f55a1
commit
58e8ee674b
9438 changed files with 266112 additions and 106976 deletions
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Containment Module Level 1: getComputedStyle().contain</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
|
||||
<meta name="assert" content="computed contain value for children should ignore container contain value.">
|
||||
<div id="container"><div id="target"></div></div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
['none', 'style', 'layout', 'paint', 'size', 'strict', 'content'].forEach(value => {
|
||||
container.style.contain = value;
|
||||
assert_equals(getComputedStyle(target).contain, "none");
|
||||
});
|
||||
}, "computed contain value for children should ignore container contain value");
|
||||
</script>
|
|
@ -22,10 +22,10 @@ test_computed_value("contain", "style");
|
|||
test_computed_value("contain", "paint");
|
||||
test_computed_value("contain", "size layout");
|
||||
test_computed_value("contain", "style paint");
|
||||
test_computed_value("contain", "layout style paint");
|
||||
test_computed_value("contain", "size layout style paint");
|
||||
test_computed_value("contain", "size layout paint", "strict");
|
||||
test_computed_value("contain", "layout paint", "content");
|
||||
test_computed_value("contain", "style layout paint", "content");
|
||||
test_computed_value("contain", "size style layout paint", "strict");
|
||||
test_computed_value("contain", "size layout paint", "size layout paint");
|
||||
test_computed_value("contain", "layout paint");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -12,6 +12,14 @@
|
|||
<body>
|
||||
<script>
|
||||
test_invalid_value("contain", "auto");
|
||||
test_invalid_value("contain", "layout layout");
|
||||
test_invalid_value("contain", "strict layout");
|
||||
test_invalid_value("contain", "paint strict");
|
||||
test_invalid_value("contain", "paint layout style paint");
|
||||
test_invalid_value("contain", "none none");
|
||||
test_invalid_value("contain", "none strict");
|
||||
test_invalid_value("contain", "strict strict");
|
||||
test_invalid_value("contain", "strict none");
|
||||
test_invalid_value("contain", "strict content");
|
||||
test_invalid_value("contain", "size layout size");
|
||||
test_invalid_value("contain", "paint content");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue