summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/crashtests/chrome-bug-1205852.html
blob: 2048b57bc070b8f7a085b2c4a4b9c9f9e2ef3d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<body style="position: relative;">
  <svg style="top: 0; left: 0; position:absolute;" width="10" height="10">
    <rect id="target" width="5" height="10" />
  </svg>
  <div id="target2" style="position: absolute; width: 10px; height: 10px; top: 0; left: 0; background: lime;"></div>
</body>
<script>
document.body.offsetTop;
document.getElementById('target').setAttribute('width', '10');
document.body.offsetTop;
document.getElementById('target2').style.transform = 'translate(2px, 2px)'
</script>