9 background-color: blue;
10 transform: translateX(0px) rotate(0deg);
11 -webkit-transition-duration: 2s;
12 -webkit-transition-timing-function: linear;
13 -webkit-transition-property: transform;
16 <script src="../animations/resources/animation-test-helpers.js"></script>
17 <script type="text/javascript">
19 function DegreesToRotation(angle)
21 return roundNumber(Math.cos(angle * Math.PI / 180), 5);
24 const expectedValues = [
25 // [time, element-id, property, expected-value, tolerance]
26 [0.5, "box", "-webkit-transform.0", DegreesToRotation(135), DegreesToRotation(10)],
27 [1.0, "box", "-webkit-transform.0", DegreesToRotation(90), DegreesToRotation(10)],
32 var box = document.getElementById('box');
33 box.style.webkitTransform = 'translateX(0px) rotate(540deg)';
36 runTransitionTest(expectedValues, setupTest);
42 Box should spin 540 degrees because that is the specified rotation and the transform operation lists match,
43 so we should animate each operation separately.