summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/retained-dl-style-change-stacking-context-2.html
blob: 248c7e62470cc2cb23d260c90f316d1f2c26270b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html class="reftest-wait">
<head>
<style>
  body {
    margin: 0px;
  }
</style>
</head>
<body>
  <div style="transform-origin: left top 0px; transform: translate(50px, 0px) scale(0.5);">
    <div id="first" style="width: 100px; height: 200px; background-color: green; float: left;" class="reftest-no-display-list"></div>
    <div id="second" style="width: 100px; height: 200px; position: absolute; transform: translate(100px, 0px); background-color: red;"></div>
  </div>
</body>
<script>
function doTest() {
  document.getElementById("second").style.backgroundColor = "green";
  document.documentElement.removeAttribute("class");
}

window.addEventListener("MozReftestInvalidate", doTest);
</script>
</html>