| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| height: 2000px; | |
| } | |
| .box { | |
| position: absolute; | |
| top: 110px; | |
| left: 10px; | |
| width: 400px; | |
| height: 400px; | |
| background-image: url('../resources/alpha-blocks.png'); | |
| background-attachment: fixed; | |
| background-size: 200px 200px; | |
| box-shadow: 0 0 10px black; | |
| } | |
| .composited { | |
| -webkit-transform: translateZ(0); | |
| } | |
| </style> | |
| <script> | |
| if (window.testRunner) { | |
| testRunner.dumpAsText(); | |
| testRunner.waitUntilDone(); | |
| } | |
| function test() | |
| { | |
| window.setTimeout(function() { | |
| document.body.offsetTop; | |
| if (window.internals) | |
| window.internals.startTrackingRepaints(); | |
| window.scrollTo(0, 100); | |
| if (window.internals) | |
| document.getElementById('repaintRects').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | |
| if (window.testRunner) | |
| testRunner.notifyDone(); | |
| }, 0); | |
| } | |
| window.addEventListener('load', test, false); | |
| </script> | |
| </head> | |
| <body> | |
| <div id="box" class="composited box"></div> | |
| <pre id="repaintRects"></pre> | |
| </body> | |
| </html> |