| z-index: 0; /* create stacking context */ |
| -webkit-animation: spin 2s infinite linear; |
| @-webkit-keyframes spin { |
| from { -webkit-transform: rotate(0); } |
| to { -webkit-transform: rotate(360deg); } |
| testRunner.waitUntilDone(); |
| var box = document.getElementById('to-animate'); |
| box.addEventListener('webkitAnimationStart', animationStarted, false); |
| box.className = 'animating box'; |
| function animationStarted() |
| document.getElementById('layers').innerText = window.internals.layerTreeAsText(document); |
| window.addEventListener('load', runTest, false); |
| <div id="to-animate" class="box"></div> |
| <!-- This div will get a layer --> |
| <!-- This div should not get a layer --> |
| <pre id="layers">Layer tree goes here in DRT</pre> |