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;
24 -webkit-animation-fill-mode: forwards;
27 @-webkit-keyframes move {
37 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
38 <script type=
"text/javascript" charset=
"utf-8">
40 const expectedValues = [
41 // [time, element-id, property, expected-value, tolerance]
42 [
1.0,
"box",
"left",
200,
20],
43 [
2.0,
"box",
"left",
0,
20],
45 [
3.0,
"box",
"left",
200,
20],
46 [
4.0,
"box",
"left",
400,
20],
49 runAnimationTest(expectedValues);
54 <!-- Test animation-direction: alternate-reverse -->
59 <div id=
"result"></div>