blob: a136c06c5ee9b5f6360ca8e9d0eb689c26e2e067 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.scroller {
overflow: scroll;
width: 300px;
height: 300px;
border: 2px solid black;
}
.relative {
position: relative;
margin: 0px 20px 0 10px;
padding: 10px;
height: 100px;
border: 4px solid green;
background-color: silver;
}
.spacer {
height: 400px;
}
.scrollbar-hider {
position: absolute;
width: 16px;
height: 300px;
top: 10px;
left: calc(310px - 16px);
background-color: gray;
}
</style>
</head>
<body>
<div id="scroller" class="scroller">
<div class="relative">
Relative foreground
</div>
<div class="spacer"></div>
</div>
</div>
<div class="scrollbar-hider"></div>
</body>
</html>