| <script type="text/javascript"> |
| internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true); |
| internals.settings.setFixedPositionCreatesStackingContext(true); |
| document.body.offsetHeight; |
| window.internals.startTrackingRepaints(document); |
| window.scrollTo(0, 1000); |
| document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText(document); |
| <body style="height:2000px" onload="test()"> |
| <div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div> |
| <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div> |
| There should be no repaints here: |
| <pre id="repaintRects"></pre> |