Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Animating marquee's parent inside display:none</title>
<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>