contain-chrome-thcrash-001.html (798B)
1 <!DOCTYPE html> 2 <title>CSS Overflow and Transforms: css-overflow-3</title> 3 <link rel="author" href="mailto:atotic@google.com"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <link rel="help" href="https://crbug.com/964924"> 7 <meta name="assert" content="chrome does not crash with css contain edge case"> 8 <style> 9 * { 10 contain: size layout; 11 } 12 html { 13 outline-style: auto; 14 margin-bottom: 39%; 15 } 16 #target { 17 -webkit-appearance: button; 18 } 19 </style> 20 <output id="target">text</output> 21 <script> 22 test(() => { 23 document.body.offsetTop; 24 document.querySelector("#target").value = ""; 25 document.body.offsetTop; 26 assert_equals(document.querySelector("#target").value, ""); 27 }, 'chrome does not crash with contain'); 28 </script>