blob: 49b370cbb53e37da436c84f7666ad8c9663ebec3 [file] [log] [blame]
<!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>