summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-inline/change-inline-change-abspos-crash.html
blob: 7752cc6592da6b017788157372329a5cb591d63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1255718">
<div style="display:inline-block; position:relative;">
  <div id="abspos" style="position:absolute;"></div>
</div>
<br>
<br>
<div id="troublemaker" style="display:inline-block; width:2px;"></div>
<script>
  document.body.offsetTop;
  troublemaker.style.width = "1px";
  document.body.offsetTop;
  abspos.style.paddingLeft = "1px";
</script>