summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/144004-1-ref.html
blob: 28c12ee1fe211e2ab9d6a5b9c9eb6969d9aa84a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html style="margin: 0; padding: 0; border: 0">
  <head>
    <script>
      function test() {
        var div = document.createElement("div");
        div.appendChild(document.createTextNode("text"));
        document.documentElement.appendChild(div);
      }
    </script>
  </head>
  <body style="margin: 0; padding: 0; border: 0">
    <script>
      document.body.offsetWidth;
      test();
    </script>
  </body>
</html>