<!DOCTYPE html> | |
<style> | |
::-webkit-scrollbar { | |
display: none; | |
} | |
</style> | |
<body style="height: 4000px; background: linear-gradient(red, blue); background-attachment: fixed"> | |
<p style="position: absolute; top: 1100px"> | |
Tests painting of fixed background content in scrolled container. | |
Passes if the background doesn't scroll. | |
</p> | |
<script> | |
onload = function() { | |
window.scrollTo(0, 1000); | |
}; | |
</script> |