blob: ad62b149d7eee487ee37b639dba860646c023ef9 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.scroller {
position: relative;
z-index: 0;
overflow-y: scroll;
width: 300px;
height: 300px;
border: 1px solid black;
}
.box {
position: relative;
margin: 20px;
width: 100px;
height: 100px;
background-color: green;
}
.inside {
left: 20px;
}
.outside {
position: relative;
margin: 20px;
width: 100px;
height: 100px;
background-color: silver;
}
.trigger {
position: absolute;
top: 10px;
left: 10px;
width: 50px;
height: 200px;
background-color: silver;
transform: translateZ(0);
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', () => {
if (window.testRunner)
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
}, false);
</script>
</head>
<body>
<div class="scroller">
<div class="trigger"></div>
<div class="inside box"></div>
<div class="inside box"></div>
<div class="inside box"></div>
<div class="inside box"></div>
</div>
<div class="outside"></div>
<pre id="layers">Layer tree goes here</pre>
</body>
</html>