gecko-dev/dom/animation/test/crashtests/1322291-2.html
2017-01-12 14:48:42 +09:00

32 lines
598 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<style>
div {
width: 100px;
height: 100px;
background-color: red;
}
</style>
<body>
<div id=o_0></div>
<script>
function boom(){
var anim = o_0.animate([
{},
{"transform": "scale(2)"},
{"transform": "none"}
], {
duration: 100,
iterationStart: 0.5,
});
// We need to wait for finished promise just like we do in 1322291-1.html.
anim.finished.then(function() {
document.documentElement.classList.remove("reftest-wait");
});
}
document.addEventListener("DOMContentLoaded", boom);
</script>
</body>
</html>