blob: 7d7d9015db2f2245c35695795418159987efa6cd [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.internals) {
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>