blob: cc170b68f9b2283f7b72b218e3af5ead791283ce [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: anim;
-webkit-animation-duration: 5s;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes anim {
from { left: 10px; }
40% { left: 30px; }
60% { left: 15px; }
to { left: 20px; }
}
</style>
<script type="text/javascript" charset="utf-8">
function startTest() {
if (window.layoutTestController) {
if (!layoutTestController.pauseAnimationAtTimeOnElementWithId("anim", 3, "box"))
throw("Animation is not running");
}
}
</script>
</head>
<body onload="startTest()">
<h1>Test for DRT pauseAnimationAtTimeOnElementWithId() API on animations with multiple keyframes</h1>
<div id="box">
</div>
</body>
</html>