Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /web-animations/crashtests/get-computed-timing-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>GetComputedTiming on an animation without an execution context,
timeline or playback rate</title>
<meta name="assert" content="This should not crash.">
<body>
<div id="target"></div>
<iframe id="iframe"></iframe>
</body>
<script type="text/javascript">
const keyframeEffect = new KeyframeEffect(target, { opacity: [1, 1] });
const anim = new iframe.contentWindow.Animation(keyframeEffect, null);
anim.play();
anim.playbackRate = 0;
document.body.removeChild(iframe);
anim.effect.getComputedTiming();
</script>
</html>