| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <html> | |
| 4 <head> | |
| 5 <style> | |
| 6 body { | |
| 7 height: 1500px; | |
| 8 width: 1500px; | |
| 9 } | |
| 10 | |
| 11 .container { | |
| 12 position: relative; | |
| 13 height: 200px; | |
| 14 width: 500px; | |
| 15 border: 1px solid black; | |
| 16 overflow: hidden; | |
| 17 z-index: 0; | |
| 18 } | |
| 19 | |
| 20 .box { | |
| 21 position: absolute; | |
| 22 width: 200px; | |
| 23 height: 500px; | |
| 24 background-color: blue; | |
| 25 } | |
| 26 | |
| 27 .composited { | |
| 28 -webkit-transform: translateZ(1px); | |
| 29 } | |
| 30 | |
| 31 pre { | |
| 32 margin-top: 500px; | |
| 33 } | |
| 34 </style> | |
| 35 <script> | |
| 36 if (window.testRunner) | |
| 37 testRunner.dumpAsText(); | |
| 38 | |
| 39 function dumpLayers() | |
| 40 { | |
| 41 window.scrollTo(25, 200); | |
| 42 if (window.internals) | |
| 43 document.getElementById('layers').innerText = internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS) | |
| 44 } | |
| 45 window.addEventListener('load', dumpLayers, false); | |
| 46 </script> | |
| 47 </head> | |
| 48 <body> | |
| 49 | |
| 50 <div class="composited box" style="top: 0;"></div> | |
| 51 | |
| 52 <pre id="layers">Layer tree goes here when testing</pre> | |
| 53 </body> | |
| 54 </html> | |
| OLD | NEW |