<!DOCTYPE html>
<style>
html, body {
    height: 100%;
}

html {
    overflow-y: hidden;
}

body {
    margin: 0;
    overflow-y: scroll;
}

#content {
    position: relative;
    height: 1000px;
    background-color: yellow;
}
</style>
<div id="content">
    The test passes if the contents scrolls correctly.
</div>
<script>
    document.body.offsetTop;
    document.documentElement.style.overflowY = 'visible';
    document.body.style.position = 'relative';

    window.scrollTo(0, 100);
</script>
