1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
17 background-color: red;
18 -webkit-animation-name: anim;
19 -webkit-animation-duration:
5s;
20 -webkit-animation-timing-function: linear;
23 @-webkit-keyframes anim {
31 <script src=
"animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
32 <script type=
"text/javascript" charset=
"utf-8">
33 if (window.layoutTestController)
34 layoutTestController.waitUntilDone();
36 function animationStarted()
38 if (window.layoutTestController) {
39 if (!layoutTestController.pauseAnimationAtTimeOnElementWithId(
"anim",
3,
"box"))
40 throw(
"Animation is not running");
42 layoutTestController.notifyDone();
48 waitForAnimationToStart(document.getElementById('box'), animationStarted);
52 <body onload=
"startTest()">
53 <h1>Test for DRT pauseAnimationAtTimeOnElementWithId() API on animations with multiple keyframes
</h1>