| -webkit-transform: translateX(0px) rotate(0deg); |
| -webkit-transition-duration: 2s; |
| -webkit-transition-timing-function: linear; |
| -webkit-transition-property: -webkit-transform; |
| <script src="resources/transition-test-helpers.js"></script> |
| <script type="text/javascript"> |
| function DegreesToRotation(angle) |
| return roundNumber(Math.cos(angle * Math.PI / 180), 5); |
| // [time, element-id, property, expected-value, tolerance] |
| [0.5, "box", "-webkit-transform.0", DegreesToRotation(135), DegreesToRotation(10)], |
| [1.0, "box", "-webkit-transform.0", DegreesToRotation(90), DegreesToRotation(10)], |
| var box = document.getElementById('box'); |
| box.style.webkitTransform = 'translateX(0px) rotate(540deg)'; |
| runTransitionTest(expectedValues, setupTest, usePauseAPI); |
| Box should spin 540 degrees because that is the specified rotation and the transform operation lists match, |
| so we should animate each operation separately. |