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/animation-composited-timing-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Composited animation with very large currentTime should not crash</title>
<div id="target"></div>
<script>
const animation =
target.animate({ transform: ['scale(1)', 'scale(100)'] },
{ iterations: Infinity, duration: 1000 });
animation.currentTime = 1e30;
animation.ready.then(() => {
document.documentElement.classList.remove('test-wait');
});
</script>
</html>