<!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.scrollTop = 200;

            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>
