5 <style type="text/css" media="screen">
9 border: 1px solid black;
18 background-color: blue;
19 -webkit-animation-name: move;
20 -webkit-animation-duration: 2s;
21 -webkit-animation-direction: alternate-reverse;
22 -webkit-animation-iteration-count: 2;
23 -webkit-animation-timing-function: linear;
26 @-webkit-keyframes move {
36 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
37 <script type="text/javascript" charset="utf-8">
39 const expectedValues = [
40 // [animation-name, time, element-id, property, expected-value, tolerance]
41 ["move", 1.0, "box", "left", 200, 20],
42 ["move", 2.0, "box", "left", 0, 20],
44 ["move", 3.0, "box", "left", 200, 20],
45 ["move", 4.0, "box", "left", 400, 20],
48 runAnimationTest(expectedValues);
53 <!-- Test animation-direction: alternate-reverse -->
58 <div id="result"></div>