Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>Setting null timeline on animation should not crash</title>
<body>
<script>
const elem = document.createElement('elem');
document.body.appendChild(elem);
const anim = elem.animate([]);
anim.reverse();
anim.finish();
anim.timeline = null;
anim.timeline = document.timeline;
</script>