position-absolute-crash-chrome-013.html (611B)
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/1021676"> 5 <div id="tfoot" style="display: table-footer-group; transform: scale(2);"> 6 <div id="oof" style="position: absolute;">text</div> 7 </div> 8 <script> 9 test(() => { 10 document.body.offsetTop; 11 12 // Make the ICB the containing-block. 13 document.getElementById('tfoot').style.transform = ''; 14 document.body.offsetTop; 15 16 document.getElementById('oof').innerText = ''; 17 document.body.offsetTop; 18 }, 'test passes if it does not crash'); 19 </script>