| background-image: linear-gradient(blue, green); |
| background-size: 100% 300px; |
| background-attachment: fixed; |
| testRunner.waitUntilDone(); |
| function documentLoaded() |
| // Timeout is required to allow layers to paint before the scroll. |
| window.setTimeout(doTest, 0); |
| window.internals.startTrackingRepaints(); |
| document.getElementById('repaintRects').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| window.addEventListener('load', documentLoaded, false); |
| <p>We should only repaint the bounds of the element with a fixed background.</p> |
| <pre id="repaintRects"></pre> |