| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style> |
| body { |
| height: 2000px; |
| } |
| |
| .box { |
| height: 100px; |
| width: 100px; |
| background-color: blue; |
| margin: 10px; |
| } |
| |
| .composited { |
| transform: translateZ(0); |
| } |
| |
| .tiled { |
| width: 5000px; |
| } |
| </style> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| function doTest() |
| { |
| if (window.internals) |
| document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_TILE_CACHES | internals.LAYER_TREE_INCLUDES_DEEP_COLOR); |
| } |
| window.addEventListener('load', doTest, false); |
| </script> |
| </head> |
| <body> |
| |
| <div class="composited box"> |
| Box |
| </div> |
| |
| <div class="tiled composited box"> |
| Box |
| </div> |
| |
| <pre id="layers"></pre> |
| </body> |
| </html> |