OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <style> |
| 4 #notransition { |
| 5 position: absolute; |
| 6 top: 0px; |
| 7 left: 0px; |
| 8 width: 50px; |
| 9 height: 50px; |
| 10 background-color: red; |
| 11 } |
| 12 |
| 13 #opacitytransition { |
| 14 position: absolute; |
| 15 top: 0px; |
| 16 left: 60px; |
| 17 height: 50px; |
| 18 width: 50px; |
| 19 background-color: green; |
| 20 transition: opacity 1s; |
| 21 } |
| 22 |
| 23 #transformtransition { |
| 24 position: absolute; |
| 25 left: 120px; |
| 26 top: 0px; |
| 27 width: 50px; |
| 28 height: 50px; |
| 29 background-color: green; |
| 30 transition: -webkit-transform 1s; |
| 31 } |
| 32 |
| 33 #filtertransition { |
| 34 position: absolute; |
| 35 left: 180px; |
| 36 top: 0px; |
| 37 width: 50px; |
| 38 height: 50px; |
| 39 background-color: green; |
| 40 transition: -webkit-filter 1s; |
| 41 } |
| 42 |
| 43 #layertree { |
| 44 position: absolute; |
| 45 left: 10000px; |
| 46 top: 0px; |
| 47 } |
| 48 </style> |
| 49 |
| 50 <script> |
| 51 if (window.internals) |
| 52 window.internals.settings.setAcceleratedCompositingForTransitionEnabled(
true); |
| 53 |
| 54 if (window.testRunner) { |
| 55 testRunner.dumpAsText(); |
| 56 testRunner.waitUntilDone(); |
| 57 } |
| 58 |
| 59 window.addEventListener('load', function() { |
| 60 if (window.testRunner) { |
| 61 document.getElementById("layertree").innerText = window.internals.la
yerTreeAsText(document); |
| 62 testRunner.notifyDone(); |
| 63 } |
| 64 }, false); |
| 65 </script> |
| 66 |
| 67 <body> |
| 68 <!-- The red square shouldn't composite. --> |
| 69 <div id="notransition"></div> |
| 70 |
| 71 <!-- This green square should composite because it has a transition on opaci
ty. --> |
| 72 <div id="opacitytransition"></div> |
| 73 |
| 74 <!-- This green square should composite because it has a transition on trans
form. --> |
| 75 <div id="transformtransition"></div> |
| 76 |
| 77 <!-- This green square should composite because it has a transition on filte
r. --> |
| 78 <div id="filtertransition"></div> |
| 79 |
| 80 <pre id="layertree"></pre> |
| 81 </body> |
| 82 </html> |
OLD | NEW |