5 <style type=
"text/css" media=
"screen">
9 background-color: blue;
13 -webkit-animation: spin
2s infinite linear;
16 @-webkit-keyframes spin {
17 from { transform: rotate(
0); }
18 to { transform: rotate(
360deg); }
21 <script type=
"text/javascript" charset=
"utf-8">
22 if (window.testRunner) {
23 testRunner.dumpAsText();
24 testRunner.waitUntilDone();
29 var box = document.getElementById('box');
30 box.addEventListener('webkitAnimationStart', function() {
31 if (window.testRunner) {
32 var layers = window.internals.layerTreeAsText(document);
35 result =
"PASS: created compositing layers when animating transform.";
37 result =
"FAIL: no layers found";
38 document.getElementById('result').innerHTML = result;
39 testRunner.notifyDone();
42 document.getElementById('box').className = 'spinning';
45 window.addEventListener('load', doTest, false);
50 <div id=
"box" class=
"box"></div>
52 <!-- We should create layers, even on platforms that don't support accelerated animation. -->
53 <div id=
"result">Test only works in DRT
</div>