blob: 06e06ec4f26b497dd6196c7b5df14406589192e4 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
body {
margin: 0;
}
div {
position: relative;
left: 100px;
height: 200px;
width: 200px;
background-color: red;
-webkit-animation-name: bounce;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes bounce {
from {
left: 100px;
}
to {
left: 200px;
}
}
</style>
<script type="text/javascript" charset="utf-8">
function startTest() {
if (window.layoutTestController) {
if (!layoutTestController.pauseAnimationAtTimeOnElementWithId("bounce", 1.0, "target"))
throw("Animation is not running");
}
}
</script>
</head>
<body onload="startTest()">
<h1>Test for DRT pauseAnimationAtTimeOnElementWithId() API</h1>
<div id="target">
</div>
</body>
</html>