<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
body {
margin: 0;
}
div {
position: relative;
top: 10000px;
width: 100px;
height: 100px;
background-color: green;
}
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
</style>
<div></div>
<script>
runAfterLayoutAndPaint(function() {
window.scrollTo(0, 10000);
}, true);
</script>