summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/crashtests/contain-nested-relayout-boundary.html
blob: ce915728f48d0d3a564bf425c9c811bdd681e68c (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<div style="position: relative; width: 100px; height: 100px; overflow: hidden;">
  <div id="target" style="contain: size layout;">
    <canvas id="inner" width="0"></canvas>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('inner').width = '100';
document.getElementById('target').style.contain = 'initial';
</script>