blob: c0d7f6549892426896c4cf241df40d8cc816040d [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<meta name="viewport" content="width=device-width">
<style>
body {
margin: 0;
}
#scroller {
margin: 10px;
height: 300px;
width: 300px;
overflow: scroll;
}
.box {
width: 100%;
height: 100%;
}
.top {
background-color: red;
}
.bottom {
background-color: green;
}
.scrollbar-hider {
position: absolute;
width: 16px;
height: 300px;
top: 10px;
left: calc(310px - 16px);
background-color: gray;
}
</style>
<script>
function doTest()
{
scroller.scrollTop = 500;
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="scroller">
<div class="top box"></div>
<div class="bottom box"></div>
</div>
<div class="scrollbar-hider"></div>
</body>
</html>