11 background-color: blue;
12 -webkit-animation-duration: 1s;
13 -webkit-animation-timing-function: linear;
16 @-webkit-keyframes anim {
24 <script src="resources/animation-test-helpers.js"></script>
26 if (window.layoutTestController) {
27 layoutTestController.waitUntilDone();
28 layoutTestController.dumpAsText();
31 function animationStarted()
33 if (window.layoutTestController) {
34 var paused = layoutTestController.pauseAnimationAtTimeOnElementWithId("anim", 1, "target");
37 result = "PASS: correctly paused animation";
39 result = "FAIL: failed to pause animation";
41 document.getElementById('results').innerText = result;
42 layoutTestController.notifyDone();
44 document.getElementById('results').innerText = "This test requires DRT";
49 var target = document.getElementById('target');
50 target.style.webkitAnimationName = "anim";
51 waitForAnimationToStart(target, animationStarted);
55 <body onload="startTest()">
56 <!-- Test for DRT pauseAnimationAtTimeOnElementWithId() API on animations with multiple keyframes -->
57 <div id="target"></div>
58 <div id="results"></div>