summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/retained-dl-prerender-transform-1.html
blob: fe5214fa54541c9b6aff3a4cfc84e0442ce585cd (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
<html class="reftest-wait">
<head>
<style>
  * {
    margin: 0px;
    padding: 0px;
  }
  .inner {
    width: 100px;
    height: 100px;
    background-color: green;
    display: inline-block;
  }
  #third {
    background-color: red;
  }
  body {
    overflow: hidden;
  }
</style>
</head>
<body id="body">
  <div id="transformed" style="transform:translateX(700px); will-change:transform;">
      <div id="first" class="reftest-no-display-list inner"></div><div id="second" class="reftest-no-display-list inner"></div><div id="third" class="reftest-display-list inner"></div>
  </div>
</body>
<script>
function doTest() {
  var third = document.getElementById("third")
  third.style.backgroundColor = "green";
  document.documentElement.removeAttribute("class");
}

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