summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/1420480-1.html
blob: d4bc59173ab134a5f9c202b49c3d46cc0d81af4a (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
31
32
33
34
35
36
37
38
39
40
41
42
43
<html class="reftest-wait">
  <head>
    <style>
    div {
      width: 200px;
      height: 200px;
      background-color: blue;
      opacity: 0.95;
      position: absolute;
    }
    #first {
      display: none;
    }
    #second {
      width: 600px;
      height: 800px;
      display: none;
      background-color: green;
    }
    </style>
  </head>
  <body>
    <div id="first">
        <div id="second"></div>
    </div>
    <div style="z-index:-2; top: 220px;"></div>
    <div style="top: 440px;"></div>

    <script>
      function doTest2() {
        document.getElementById("second").style.display = "block";
        document.documentElement.removeAttribute("class");
      }

      function doTest() {
        document.getElementById("first").style.display = "block";
        setTimeout(doTest2, 500);
      }
      document.addEventListener("MozReftestInvalidate", doTest);
    </script>
  </body>
</html>