4 <style type="text/css" media="screen">
11 background-color: green;
12 -webkit-animation-name: move;
13 -webkit-animation-duration: 1s;
14 -webkit-animation-timing-function: linear;
15 -webkit-animation-iteration-count: 1;
18 @-webkit-keyframes move {
20 -webkit-transform: translateX(0) scale(1);
24 -webkit-transform: translateX(400px) scale(1);
36 background-color: red;
40 display: none; /* only the pixel output is valuable */
43 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
44 <script type="text/javascript" charset="utf-8">
46 const expectedValues = [
47 // [animation-name, time, element-id, property, expected-value, tolerance]
48 ["move", 0.5, "box", "webkitTransform.4", 200, 2],
51 var disablePauseAnimationAPI = false;
52 var doPixelTest = true;
53 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
59 <!-- In the pixel results, the green square should overlay the red square -->
60 <div id="indicator"></div>
62 <div id="result"></div>