4 <style type=
"text/css" media=
"screen">
11 background-color: blue;
12 -webkit-animation-duration:
2s;
13 -webkit-animation-timing-function: linear;
17 -webkit-animation-name: move;
19 @-webkit-keyframes move {
32 -webkit-animation-name: move2;
34 @-webkit-keyframes move2 {
36 transform: translateX(
0);
42 transform: translateX(
400px);
47 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
48 <script type=
"text/javascript" charset=
"utf-8">
50 const expectedValues = [
51 // [time, element-id, property, expected-value, tolerance]
52 [
1,
"box1",
"left",
200,
15],
53 [
1,
"box2",
"webkitTransform.4",
200,
15],
54 [
0.5,
"box1",
"opacity",
0.5,
0.1],
55 [
1,
"box1",
"opacity",
0,
0.1],
56 [
1.5,
"box1",
"left",
300,
15],
57 [
1.5,
"box2",
"webkitTransform.4",
300,
15],
58 [
1.5,
"box1",
"opacity",
0.5,
0.1],
61 runAnimationTest(expectedValues);
65 <div id=
"box1" class=
"box"></div>
66 <div id=
"box2" class=
"box"></div>