summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/chrome-body-overflow-propagation-crash.html
blob: 22607b4a4d037cdd9185ead784c9480f0926a79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<title>CSS Overflow Test: Chrome scrollbar crash - multiple body elements, removed stylesheet</title>
<style id="sheet">
</style>
<style>
  body {
    overflow: scroll;
    width: 100px;
    height: 100px;
  }
</style>
<body>Pass if no crash</body>
<script>
  document.body.offsetTop;
  sheet.remove();
  document.documentElement.insertBefore(document.createElement("body"), document.body);
</script>