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/keyframeeffect-no-target.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>KeyframeEffect with no target should not crash</title>
<div id="target">This test passes if it does not crash.</div>
<style>
@keyframes frame { }
</style>
<script>
let effect = new KeyframeEffect(null, null, {duration: 1000});
let animation = new Animation(effect);
requestAnimationFrame(() => {
document.documentElement.classList.remove('test-wait');
});
</script>
</html>