| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .fixed { | 5 .fixed { |
| 6 position: fixed; | 6 position: fixed; |
| 7 left: 10px; | 7 left: 10px; |
| 8 top: 10px; | 8 top: 10px; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 if (window.internals) | 13 if (window.internals) |
| 14 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled
(false); | 14 window.internals.settings.setPreferCompositingToLCDTextEnabled(false); |
| 15 | 15 |
| 16 if (window.testRunner) { | 16 if (window.testRunner) { |
| 17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
| 18 | 18 |
| 19 window.addEventListener("load", function() { | 19 window.addEventListener("load", function() { |
| 20 document.getElementById("layerTree").innerText = window.internals.layerT
reeAsText(document); | 20 document.getElementById("layerTree").innerText = window.internals.layerT
reeAsText(document); |
| 21 document.getElementById("mainThreadScrollingReasons").innerText = window
.internals.mainThreadScrollingReasons(document); | 21 document.getElementById("mainThreadScrollingReasons").innerText = window
.internals.mainThreadScrollingReasons(document); |
| 22 }, false); | 22 }, false); |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </head> | 25 </head> |
| 26 | 26 |
| 27 <body> | 27 <body> |
| 28 <div class="fixed">TEST</div> | 28 <div class="fixed">TEST</div> |
| 29 | 29 |
| 30 <pre id="layerTree"></pre> | 30 <pre id="layerTree"></pre> |
| 31 <pre id="mainThreadScrollingReasons"></pre> | 31 <pre id="mainThreadScrollingReasons"></pre> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |