summaryrefslogtreecommitdiffstats
path: root/layout/base/crashtests/243519-1.html
blob: 2652415734b4018da1d66df5842d7b2c109f6070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE HTML>
<html>
<body>
  <div style="position:absolute;">Hello</div>
  <div style="position:fixed;">Kitty</div>
  <script>
    document.body.offsetTop;
    document.documentElement.style.display = "table";
    document.body.offsetTop;
    document.documentElement.style.display = "";
    document.body.offsetTop;

    document.documentElement.style.position = "absolute";
    document.body.offsetTop;
    document.documentElement.style.display = "table";
    document.body.offsetTop;
    document.documentElement.style.display = "";
    document.body.offsetTop;

    document.documentElement.style.position = "fixed";
    document.body.offsetTop;
    document.documentElement.style.display = "table";
    document.body.offsetTop;
    document.documentElement.style.display = "";
    
    document.documentElement.style.position = "";
    document.body.offsetTop;
  </script>
</body>
</html>