summaryrefslogtreecommitdiffstats
path: root/layout/reftests/position-dynamic-changes/multiple-changes.html
blob: 89b88047b538c168641405443bafd004bed3a88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html class="reftest-wait">
  <body>
    <style>
      #a { border: 1px solid black; width: 100px; height: 100px; }
      #b { border: 1px solid blue; width: 50px; height: 50px; }
      div { position: absolute; }
    </style>
    <script>
      document.addEventListener("MozReftestInvalidate", function() {
        var a = document.querySelector("#a");
        var b = document.querySelector("#b");
        a.style.left = "10px";
        b.style.left = "20px";
        document.documentElement.removeAttribute("class");
      }, false);
    </script>
    <div id="a">
      <div id="b">
      </div>
    </div>
  </body>
</html>