<!DOCTYPE html>
<style>
#container {
    overflow: scroll;
    width: 400px;
    height: 300px;
}

#clipping {
    overflow: hidden;
    height: 1000px;

    position: relative;
    z-index: 0;
}

#clipped {
    height: 10px;
    border: solid 1px black;
    transform: translateZ(0);
}
</style>
<div id="container">
    <div id="clipping">
        <div>Lorem ipsum</div>
        <div id="clipped"></div>
    </div>
</div>
<script>
    if (window.testRunner) {
        testRunner.waitUntilDone();
        testRunner.layoutAndPaintAsyncThen(function() {
            document.getElementById('container').scrollTop = 1000;
            testRunner.notifyDone();
        });
    } else {
        // For manual test.
        setTimeout(function() {
            document.getElementById('container').scrollTop = 1000;
        }, 500);
    }
</script>