blob: c64cd45102ce4a68f8532a8c9204a019772974be [file] [log] [blame]
<!doctype html>
<style>
body {
background-image: url('resources/simple_image.png');
background-size: 200px 200px;
height: 3000px;
}
body.fixed {
background-attachment: fixed;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
if (window.internals) {
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
}
window.onload = function() {
window.scrollTo(0, 300);
// crbug.com/343132 LayerCompositor::rootFixedBackgroundsChanged should not query stale compositing state
document.querySelector('body').classList.add('fixed');
}
</script>