Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-position/position-absolute-crash-chrome-013.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="tfoot" style="display: table-footer-group; transform: scale(2);">
  <div id="oof" style="position: absolute;">text</div>
</div>
<script>
test(() => {
  document.body.offsetTop;
  // Make the ICB the containing-block.
  document.getElementById('tfoot').style.transform = '';
  document.body.offsetTop;
  document.getElementById('oof').innerText = '';
  document.body.offsetTop;
}, 'test passes if it does not crash');
</script>