4 <style type=
"text/css" media=
"screen">
13 background-color: green;
14 -webkit-animation-name: move;
15 -webkit-animation-duration:
1s;
16 -webkit-animation-timing-function: linear;
17 -webkit-animation-iteration-count:
1;
19 @-webkit-keyframes move {
21 transform: translateX(
0) scale(
1);
25 transform: translateX(
400px) scale(
1);
31 background-color: red;
34 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
35 <script type=
"text/javascript" charset=
"utf-8">
37 const expectedValues = [
38 // [time, element-id, property, expected-value, tolerance]
39 [
0.5,
"box",
"webkitTransform.4",
200,
5],
42 var disablePauseAnimationAPI = false;
43 var doPixelTest = true;
44 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
50 <!-- In the pixel results, the green square should overlay the red square -->
51 <div class=
"target" id=
"indicator"></div>
52 <div class=
"target" id=
"box"></div>
53 <div id=
"result"></div>