contain-computed-children.html (766B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <title>CSS Containment Module Level 1: getComputedStyle().contain</title> 5 <link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property"> 6 <meta name="assert" content="computed contain value for children should ignore container contain value."> 7 <div id="container"><div id="target"></div></div> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script> 11 test(() => { 12 ['none', 'style', 'layout', 'paint', 'size', 'strict', 'content'].forEach(value => { 13 container.style.contain = value; 14 assert_equals(getComputedStyle(target).contain, "none"); 15 }); 16 }, "computed contain value for children should ignore container contain value"); 17 </script>