summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/1418945-1.html
blob: 527d91211d8887e4b6c06ee478cb8120dff0e989 (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
<html class="reftest-wait">
<head>
<style>
  div {
    width: 100px;
    height: 100px;
    position:relative;
  }
  #first {
    background-color: red;
    z-index: 2;
  }
  #second {
    top: -50px;
    background-color: green;
    z-index: 1;
  }
</style>
<script>

function doTest()
{
  document.getElementById("first").style.zIndex = 1;
  document.documentElement.removeAttribute("class");
}

document.addEventListener("MozReftestInvalidate", doTest);
</script>
</head>
<body>
    <div id="first"></div>
    <div id="second"></div>
</body>
</html>