Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-animations/crashtests/zoomed-length.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>CSS animation with zoom and length should not crash</title>
<style>
#target {
animation: anim 1s -0.25s step-start paused;
}
@keyframes anim {
50% {
left: 1000px;
}
}
* { zoom: 6318030279180000000; }
</style>
<div id="target"></div>
<script>
target.addEventListener('animationstart', () => {
getComputedStyle(target).left;
document.documentElement.classList.remove('test-wait');
});
</script>
</html>