blob: f0cf790747c67180c93c10d30ad322237db53d4c [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
body {
height: 4000px;
}
#scroller {
width: 300px;
height: 300px;
border: 1px solid black;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.contents {
width: 100%;
height: 200%;
border-top: 200px solid red;
box-sizing: border-box;
background-color: green;
}
</style>
<script src="../../resources/ui-helper.js"></script>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
window.addEventListener('load', async () => {
scroller.style.overflow = 'hidden';
scroller.scrollTop = 200;
scroller.style.overflow = 'scroll';
if (!testRunner.runUIScript)
return
await UIHelper.immediateScrollTo(0, 10);
await UIHelper.ensurePresentationUpdate();
if (window.testRunner)
testRunner.notifyDone();
}, false);
</script>
</head>
<body>
<div id="scroller">
<div class="contents">
</div>
</div>
</body>
</html>