summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/crashtests/1585770.html
blob: 018d688582998239e5a10c788214fb9880c0dd48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html class="reftest-wait">
<script>
function start () {
  const kf_effect =
      new KeyframeEffect(document.documentElement,
                         { opacity: ['', '1'] },
                         { easing: 'step-end',
                           duration: 10000 } );
  const copy = new KeyframeEffect(kf_effect);
  const animation = new Animation(copy);

  animation.reverse();
  document.documentElement.getBoundingClientRect();

  requestAnimationFrame(() => {
    document.documentElement.classList.remove("reftest-wait");
  });
}

document.addEventListener('DOMContentLoaded', start);
</script>
</html>