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