<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] --> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
body { | |
margin: 0; | |
} | |
#scroller { | |
margin: 10px; | |
height: 300px; | |
width: 300px; | |
overflow: scroll; | |
-webkit-overflow-scrolling: touch; | |
} | |
.box { | |
width: 100%; | |
height: 100%; | |
} | |
.top { | |
background-color: green; | |
} | |
.bottom { | |
background-color: green; | |
} | |
.scrollbar-hider { | |
position: absolute; | |
width: 16px; | |
height: 300px; | |
top: 10px; | |
left: calc(310px - 16px); | |
background-color: gray; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="scroller"> | |
<div class="top box"></div> | |
<div class="bottom box"></div> | |
</div> | |
<div class="scrollbar-hider"></div> | |
</body> | |
</html> |