summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-animations/background-color-on-html.html
blob: a08de3a1f3dc91319ac493c3441c242a26267a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML>
<html class="reftest-wait reftest-no-flush">
<style>
@keyframes anim {
  from { background-color: green; }
  to { background-color: red; }
}
html {
  background-color: black;
}
</style>
<script>
document.addEventListener("MozReftestInvalidate", () => {
  document.documentElement.style.animation = "anim 100s step-end reverse";
  document.documentElement.addEventListener("animationstart", () => {
    document.documentElement.classList.remove("reftest-wait");
  });
});
</script>
</html>