blob: 08ebc44c4d16da6925d65edc13194d8ad3256475 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#box {
height: 100px;
width: 100px;
background-color: blue;
animation: move 1 1s linear;
}
@keyframes move {
from { transform: translate(0, 0); }
50% { transform: translate(100px, 0); }
to { transform: translate(300px, 0); }
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.addEventListener('load', () => {
let box = document.getElementById('box');
box.addEventListener('animationstart', () => {
if (window.testRunner)
testRunner.notifyDone();
});
}, false);
</script>
</head>
<body>
<p>This test should not crash.</p>
<div id="box"></div>
</body>
</html>