blob: 9e585a9c70b57069516b337e5a1e1e26235dc3a1 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
background-color: blue;
}
.scrolling {
height: 300px;
width: 400px;
overflow: scroll;
-webkit-overflow-scrolling: touch;
border: 2px solid black;
}
.spacer {
height: 400px;
margin: 10px;
background-color: silver;
}
.sticky {
position: sticky;
top: 10px;
bottom: 10px;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
</head>
<body>
<div class="composited scrolling">
<div class="spacer"></div>
<div class="spacer"></div>
<div class="sticky box"></div>
<div class="spacer"></div>
<div class="spacer"></div>
</div>
<div class="sticky box"></div>
</body>
</html>