4 <style type=
"text/css" media=
"screen">
11 background-color: blue;
12 -webkit-animation-duration:
2s;
13 -webkit-animation-timing-function: ease-in;
17 -webkit-animation-name: move;
19 @-webkit-keyframes move {
29 -webkit-animation-timing-function: linear;
37 -webkit-animation-name: move2;
39 @-webkit-keyframes move2 {
42 transform: translateX(
100px);
48 transform: translateX(
200px);
49 -webkit-animation-timing-function: linear;
52 transform: translateX(
400px);
57 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
58 <script type=
"text/javascript" charset=
"utf-8">
60 const expectedValues = [
61 // [time, element-id, property, expected-value, tolerance]
62 [
0.5,
"box1",
"left",
132,
15],
63 [
0.5,
"box2",
"webkitTransform.4",
132,
15],
64 [
1.5,
"box1",
"left",
300,
15],
65 [
1.5,
"box2",
"webkitTransform.4",
300,
15],
68 runAnimationTest(expectedValues);
72 <div id=
"box1" class=
"box"></div>
73 <div id=
"box2" class=
"box"></div>