blob: 30e52b0401c44f22595e48a731d50c2d9c977ccc [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.scroller {
width: 400px;
height: 450px;
border: 2px solid black;
overflow: scroll;
}
.contents {
height: 300%;
}
</style>
<script>
if (window.internals)
internals.setUsesOverlayScrollbars(true);
window.addEventListener('load', () => {
// Trigger scrollbar display.
let scroller = document.querySelector('.scroller');
scroller.scrollTop = 10;
}, false);
</script>
</head>
<body>
<div class="scroller">
<div class="contents">
</div>
</div>
</body>
</html>