| 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 width: 200px; | |
| 22 height: 200px; | |
| 23 background-color: blue; | |
| 24 } | |
| 25 | |
| 26 .composited { | |
| 27 -webkit-transform: translateZ(1px); | |
| 28 } | |
| 29 | |
| 30 iframe { | |
| 31 margin: 30px; | |
| 32 box-shadow: 0 0 20px black; | |
| 33 } | |
| 34 | |
| 35 </style> | |
| 36 <script> | |
| 37 if (window.testRunner) | |
| 38 testRunner.dumpAsText(); | |
| 39 | |
| 40 function dumpLayers() | |
| 41 { | |
| 42 // window.scrollTo(40, 40); | |
| 43 if (window.internals) | |
| 44 document.getElementById('layers').innerText = internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS) | |
| 45 } | |
| 46 window.addEventListener('load', dumpLayers, false); | |
| 47 </script> | |
| 48 </head> | |
| 49 <body> | |
| 50 | |
| 51 <iframe src="resources/subframe-with-layers.html" scrolling="nso"></iframe> | |
| 52 <div class="composited box" style="top: 0;"></div> | |
| 53 | |
| 54 <pre id="layers">Layer tree goes here when testing</pre> | |
| 55 </body> | |
| 56 </html> | |
| OLD | NEW |