blob: 1521e60cb3a8a9696a931eba87bdeec1a3b8f983 [file] [log] [blame]
<!-- Based on fast/repaint/full-viewport-repaint-for-background-attachment-fixed.html -->
<!DOCTYPE html>
<style>
body {
background-image: linear-gradient(red, blue);
background-attachment: fixed;
margin: 0;
}
</style>
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script>
if (window.testRunner)
window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
window.expectedPaintInvalidationObjects = [
"##ALL##",
"LayoutView #document",
];
function paintInvalidationTest() {
window.scrollTo(0, 1000);
}
window.onload = function() {
runPaintInvalidationTest();
};
</script>
<div style="height: 5000px">
Tests that scrolling a frame with background-attachment: fixed invalidates the entire viewport.
</div>