summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/crashtests/1322291-2.html
blob: b93d53224df36ba3b606defcc022004604f01bf9 (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
<!DOCTYPE html>
<html class="reftest-wait">
<style>
div {
  width: 100px;
  height: 100px;
  background-color: red;
}
</style>
<body>
<div id=o_0></div>
<script>
function boom(){
  var anim = o_0.animate([
    {},
    {"transform": "scale(2)"},
    {"transform": "none"}
    ], {
      duration: 100,
      iterationStart: 0.5,
    });
  // We need to wait for finished promise just like we do in 1322291-1.html.
  anim.finished.then(function() {
    document.documentElement.classList.remove("reftest-wait");
  });
}
document.addEventListener("DOMContentLoaded", boom);
</script>

</body>
</html>