| <style type="text/css" media="screen"> |
| -webkit-animation-duration: 0.2s; |
| -webkit-animation-timing-function: linear; |
| -webkit-animation-name: move; |
| @-webkit-keyframes move { |
| from { -webkit-transform: translateX(100px) scale(1); } |
| to { -webkit-transform: translateX(400px) scale(1); } |
| <script type="text/javascript" charset="utf-8"> |
| if (window.layoutTestController) |
| layoutTestController.waitUntilDone(); |
| function suspendAndWaitForCompletion() |
| if (window.layoutTestController) |
| layoutTestController.suspendAnimations(); |
| window.setTimeout(function() { |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |
| document.getElementById('box').addEventListener('webkitAnimationStart', function() { |
| suspendAndWaitForCompletion(); |
| document.getElementById('box').className = 'move'; |
| 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> |