| -webkit-transition: all 1s linear; |
| Tests transitions to and from a mix of absolute and percent values |
| <div style="width: 500px; height: 500px;"> |
| <script src="resources/transition-test-helpers.js"></script> |
| <script type="text/javascript"> |
| // [time, element-id, property, expected-value, tolerance] |
| // The transition takes 1 second, so we compute tolerance to allow |
| // 10% or 100ms variance, (endValue - startValue) / 10. |
| [0.5, 'box', 'width', 225, 35], |
| [0.5, 'box', 'height', 275, 35], |
| var box = document.getElementById('box'); |
| runTransitionTest(expectedValues, setupTest, usePauseAPI); |