summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-013.html
blob: 8f0daf4bfe4aef4916e3cfb037181cf8124fb938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://crbug.com/1021676">
<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>