blob: 778b3881e9de12d1aa6187abc81dbd7a017cb4e2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.my_animation {
animation: my_animation 200ms ease;
animation-direction: alternate;
animation-iteration-count: infinite;
}
@keyframes my_animation {
from { color: black; }
to { color: red; }
}
</style>
<script>
function startTest() {
window.addEventListener('animationiteration', function() {
// Remove ourselves from the frame tree, exercising the scenario
// that used to lead to a crash in https://crbug.com/776407 and
// https://crbug.com/802392.
window.top.document.getElementById('oopif').remove();
});
}
</script>
</head>
<body>
<p class="my_animation">Css animation <span id="my_animation">here</span></p>
</body>
</html>