CSSAnimation-getKeyframes-crash.html (636B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 <link rel="help" href="https://crbug.com/1326225"> 7 <title>Crash test calling getKeyframes on an orphaned element</title> 8 </head> 9 <style type="text/css"> 10 @keyframes anim { 11 from { left: 0; } 12 } 13 </style> 14 <body> 15 <div id="container"> 16 <div id="target"> 17 </div> 18 </div> 19 </body> 20 <script type="text/javascript"> 21 target.style.animation = "anim 0.01s"; 22 var animation = target.getAnimations()[0]; 23 container.innerHTML = 1; 24 animation.effect.getKeyframes()[0].hasOwnProperty(); 25 </script> 26 </html>