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;
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 // [time, element-id, property, expected-value, tolerance]
41 [
0.5,
"box",
"left",
100,
20],
42 [
1.5,
"box",
"left",
300,
20],
44 [
2.5,
"box",
"left",
300,
20],
45 [
3.5,
"box",
"left",
100,
20],
48 runAnimationTest(expectedValues);
53 <!-- Test animation-direction: alternate -->
58 <div id=
"result"></div>