Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /web-animations/animation-model/keyframe-effects/effect-on-marquee-parent-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Animating marquee's parent inside display:none</title>
<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>