summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/crashtests/1333539-1.html
blob: c9111890b0f0282ea73420c18c47c9535df8a1b4 (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="UTF-8">
<script>
window.onload = function(){
  let body = document.getElementsByTagName("body")[0];
  let target = document.createElement("div");
  let anim1 = new Animation();
  let anim2 = new Animation();
  let effect = new KeyframeEffect(target, { opacity: [ 0, 1 ] }, 1000);
  body.appendChild(target);
  target.appendChild(document.createElement("meter"));
  anim1.startTime = 88;
  anim1.timeline = null;
  anim1.pause();
  anim1.effect = effect;
  anim2.effect = effect;
  anim1.effect = effect;

  // anim1, since it doesn't have a timeline, will remain pause-pending,
  // so just wait on anim2.
  anim2.ready.then(() => {
    document.documentElement.classList.remove("reftest-wait");
  });
};
</script>
</head>
<body></body>
</html>