blob: 604b512fab5e02d968833b0789be471eb97d7b2f [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
#scroller {
overflow: scroll;
height: 400px;
width: 400px;
border: 1px solid black;
}
.composited {
width: 200px;
height: 200px;
background-color: green;
transform: translateZ(0);
}
.content {
height: 700px;
}
.content.changed {
height: 100px;
}
</style>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
window.addEventListener('load', () => {
scroller.scrollTo(0, 100);
setTimeout(() => {
document.querySelector('.content').classList.add('changed');
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}, false);
</script>
</head>
<body>
<section id="scroller">
<div class="composited"></div>
<div class="content"></div>
</section>
</body>
</html>