| -webkit-transition: -webkit-transform 0.5s linear; |
| -webkit-transform: translateX(0) scale(1); |
| -webkit-transform: translateX(400px) scale(1); |
| testRunner.waitUntilDone(); |
| function suspendAndWaitForCompletion() |
| internals.suspendAnimations(); |
| window.setTimeout(function() { |
| internals.resumeAnimations(); |
| document.getElementById('box').className = 'move'; |
| window.setTimeout(function() { |
| // Wait for the box to animate into the safe zone (to test that it doesn't snap back to the start). |
| window.setTimeout(suspendAndWaitForCompletion, 250); |
| }, 0); // give the accelerated transition a chance to kick off. |
| window.addEventListener('load', doTest, false); |
| <!-- When suspended, the red box should be hidden by the green box. You should see no red. --> |
| <div id="safezone"></div> |