summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/crashtests/1282691-1.html
blob: ab6e1a26c0ffb216619576f4b2575742b9a48660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html class=reftest-wait>
<meta charset=utf-8>
<script>

function boom() {
  const div = document.createElement('div');
  const anim = div.animate([{}], {});
  document.documentElement.appendChild(div);
  anim.pause();
  document.documentElement.removeChild(div);

  requestAnimationFrame(() => {
    document.documentElement.appendChild(div);
    anim.play();
    document.documentElement.className = '';
  });
}

</script>
</head>
<body onload="boom();"></body>
</html>