summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/1533317-1.html
blob: 9f34a865bac6514b44a69994613ff1633e69a510 (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
<html class="reftest-wait">
  <head>
    <style>
    div {
      width: 200px;
      height: 200px;
    }
    .positioned {
      position: absolute;
      top: 0px;
      left: 200px;
      background-color: green;
    }
    .outer {
      position: relative;
    }
    </style>
  </head>
  <body>
    <div class="outer">
      <div id="test"></div>
      <div class="positioned"></div>
    </div>
    <script>
      function doTest() {
        document.getElementById("test").style.backgroundColor = "green";
        document.documentElement.removeAttribute("class");
      }
      document.addEventListener("MozReftestInvalidate", doTest);
    </script>
  </body>
</html>