blob: 99b7d3067db05ba7175a750cd3e3abba1513355f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
* {
box-sizing: border-box;
}
.container {
position: absolute;
height: 100px;
width: 100px;
background-color: green;
margin: 100px;
}
.spinner {
position: absolute;
top: -50px;
left: -50px;
}
.spinner.animating {
-webkit-animation: imageSpin 999999999s linear 0s infinite
}
.inner {
width: 50px;
height: 50px;
}
.bordered {
width: 100px;
height: 100px;
border: 20px solid black;
}
@-webkit-keyframes imageSpin {
from {
-webkit-transform: rotateZ(0deg) translate3d(50px, 50px, 0)
}
to {
-webkit-transform: rotateZ(360deg) translate3d(50px, 50px 0)
}
}
</style>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function doTest()
{
var box = document.getElementById('spinner');
box.addEventListener('webkitAnimationStart', function() {
if (window.testRunner)
testRunner.notifyDone();
}, false);
box.classList.add('animating');
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="container">
<div id="spinner" class="spinner">
<div class="inner">
<div class="bordered"></div>
</div>
</div>
</div>
</body>
</html>