summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1398500-1.html
blob: 0ba98ba5d5458a3b1640b7bd51096bda79722bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
  <head>
    <style>
      body { overflow: scroll; border: 1px solid green; }
    </style>
    <script>
      onload = function() {
        var newBody = document.createElement("body");
        newBody.textContent = "This element should not have scrollbars!";
        document.documentElement.appendChild(newBody);
        window.nooptimize = newBody.offsetWidth;
        document.body.remove();
      }
    </script>
  </head>
  <body>
    First body
  </body>
</html>