| 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 | |
| 26 pre { | |
| 27 margin-top: 450px; | |
| 28 } | |
| 29 </style> | |
| 30 <script> | |
| 31 if (window.testRunner) | |
| 32 testRunner.dumpAsText(); | |
| 33 | |
| 34 function dumpLayers() | |
| 35 { | |
| 36 if (window.internals) | |
| 37 document.getElementById('layers').innerText = internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS) | |
| 38 } | |
| 39 window.addEventListener('load', dumpLayers, false); | |
| 40 </script> | |
| 41 </head> | |
| 42 <body> | |
| 43 | |
| 44 <div class="composited box" style="top: -120px; left: -100px"></div> | |
| 45 <div class="composited box" style="top: 200px; left: -100px"></div> | |
| 46 | |
| 47 <pre id="layers">Layer tree goes here when testing</pre> | |
| 48 </body> | |
| 49 </html> | |
| OLD | NEW |