5 <style type="text/css">
9 background-color: blue;
13 -webkit-animation: anim 2s linear both;
16 @-webkit-keyframes anim {
17 from { -webkit-transform: rotate(0deg) translate(-100px, 0); }
18 to { -webkit-transform: rotate(180deg) translate(300px, 0); }
22 opacity: 0; /* hide in pixel result */
25 <script src="resources/animation-test-helpers.js" type="text/javascript"></script>
26 <script type="text/javascript">
27 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance]
29 ["anim", 1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002],
32 const doPixelTest = true;
33 const disablePauseAnimationAPI = false;
34 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
39 <div class="box" id="box"></div>
40 <div id="result"></div>