summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/retained-dl-animation-on-pseudo.html
blob: cdd641ecb9d80867bda869834616115458e6e61b (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
37
38
39
40
41
<html class="reftest-wait">
<head>
<style>
body {
  margin: 0px;
}
#child {
  width:100px;
  height:100px;
  background-color: green;
  display: inline-block;
}

#parent::before {
  content: '';
  width: 100px;
  height: 100px;
  display: inline-block;
}

@keyframes anim {
  from, to { background-color: blue; }
}

.anim::before {
  animation: anim 100s infinite;
}
</style>
</head>
<body>
  <div id="parent">
    <div id="child" class="reftest-no-display-list"></div>
  </div>
</body>
<script>
window.addEventListener("MozReftestInvalidate", () => {
  document.getElementById("parent").classList.add("anim");
  document.documentElement.removeAttribute("class");
});
</script>
</html>