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/animation-transition-collision.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Animating transitioned properties should not crash</title>
<style>
@keyframes test {
from {
/* These properties have -webkit-* equivalents. */
background-size: 10px 10px;
box-shadow: 10px 10px green;
perspective: 10px;
transform: translate(10px, 10px);
perspective-origin: 10px 10px;
transform-origin: 10px 10px;
}
}
#target {
animation: test 1s;
transition: all 1s;
}
</style>
<div id="target"></div>
<script>
'use strict';
let frameWait = 5;
function frame() {
frameWait--;
if (frameWait) {
requestAnimationFrame(frame);
} else {
document.documentElement.classList.remove('test-wait');
}
}
requestAnimationFrame(frame);
</script>
</html>