Skip to content

Truly independent web browser

614 B
Raw Blame
<!DOCTYPE html>
<html>
<style>
    #scroller {
        width: 200px;
        height: 100px;
        overflow: scroll;
        background-image: linear-gradient(to bottom, red 0px, red 50px, blue 50px, blue 100px, yellow 100px, yellow 150px, green 150px, green 400px);
        background-attachment: local;
        background-repeat: no-repeat;
    }
    #spacer { height: 400px; }
    #unrelated { width: 40px; height: 40px; background: black; }
</style>
<div id="scroller"><div id="spacer"></div></div>
<div id="unrelated"></div>
<script>
    document.getElementById("scroller").scrollTop = 75;
</script>
</html>