position-absolute-crash-chrome-009.html (841B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <link rel="help" href="https://crbug.com/974760"> 5 <meta name="assert" content="fixed children inside inline container do not crash"> 6 <style> 7 #container { 8 position: relative; 9 overflow: auto; 10 width: 200px; 11 height: 200px; 12 } 13 #inline-fixed-container { 14 filter:url(""); 15 } 16 #fixed-container { 17 position: fixed; 18 } 19 #target { 20 position: fixed; 21 } 22 </style> 23 <div id="container"> 24 <span id="inline-fixed-container"> 25 <div id="fixed-container"> 26 <div id="target"></div> 27 </div> 28 </span> 29 </div> 30 <script> 31 test(() => { 32 document.body.offsetTop; 33 document.querySelector("#target").appendChild( 34 document.createTextNode("foo")); 35 document.body.offsetTop; 36 }, 'this test passes if it does not crash'); 37 </script>