| <!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=false ] --> |
| <style type="text/css" media="screen"> |
| -webkit-animation: spin 2s infinite linear; |
| @-webkit-keyframes spin { |
| from { -webkit-transform: rotate(0); } |
| to { -webkit-transform: rotate(360deg); } |
| <script type="text/javascript" charset="utf-8"> |
| testRunner.waitUntilDone(); |
| var box = document.getElementById('box'); |
| box.addEventListener('webkitAnimationStart', function() { |
| var layers = window.internals.layerTreeAsText(document); |
| result = "PASS: created compositing layers when animating transform."; |
| result = "FAIL: no layers found"; |
| document.getElementById('result').innerHTML = result; |
| document.getElementById('box').classList.add('spinning'); |
| window.addEventListener('load', doTest, false); |
| <div id="box" class="box"></div> |
| <!-- We should create layers, even on platforms that don't support accelerated animation. --> |
| <div id="result">Test only works in DRT</div> |