blob: c153c00521cfe7216d0ebb8024f537067d21a48d [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ 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>