summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-animations/animation-model/keyframe-effects/effect-on-marquee-parent-crash.html
blob: 2948d6b66e85c16010df25e70755312b824e0c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>Animating marquee's parent inside display:none</title>
<link rel="help" href="https://drafts.csswg.org/web-animations-1/">
<link rel="help" href="https://crbug.com/1290016">
<div id=container></div>
<script>
  let outer = document.createElement('div');
  outer.style.display = 'none';
  let inner = document.createElement('div');
  let marquee = document.createElement('marquee');

  let effect = new KeyframeEffect(inner, [{'width': '1px'}], 1);
  let anim = new Animation(effect, null);
  anim.pause();

  document.body.append(outer);
  outer.append(inner);
  inner.append(marquee);

  // Don't crash.
</script>