summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/crashtests/1291413-2.html
blob: fca3a938009c3eea219fbdd96ad329ded6f991b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html class=reftest-wait>
<script>
window.onload = () => {
  const div = document.createElement('div');

  document.documentElement.appendChild(div);
  const anim = div.animate([], 1000);

  anim.ready.then(() => {
    anim.pause();
    anim.reverse();
    anim.playbackRate = 0;
    anim.playbackRate = 1;
    anim.ready.then(() => {
      document.documentElement.className = '';
    });
  });
};
</script>
</html>