blob: 89253fc838f998d2884be142e32fc490151d1a76 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<script>
if (window.internals)
internals.settings.setLegacyOverflowScrollingTouchEnabled(true);
</script>
<style>
.box {
position: absolute;
height: 200px;
width: 200px;
background-color: blue;
}
.scroller {
margin: 60px;
overflow: scroll;
border: 1px solid black;
width: 220px;
height: 220px;
-webkit-overflow-scrolling: touch;
}
.scrolled-contents {
height: 1000px;
}
.outside {
z-index: 1;
top: 20px;
left: 20px;
background-color: green;
}
.back {
z-index: 0;
}
.front {
z-index: 2;
top: 120px;
left: 120px;
background-color: orange;
}
</style>
</head>
<body>
<div class="outside box"></div>
<div class="scroller">
<div class="scrolled-contents">
<div class="back box"></div>
<div class="front box"></div>
</div>
</div>
</body>
</html>