<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] --> | |
<meta name=viewport content="width=device-width"> | |
<!-- Expect no red (a blank page) --> | |
<div style=" | |
overflow: scroll; | |
-webkit-overflow-scrolling: touch; | |
width: 300px; | |
height: 300px; | |
"> | |
<div style=" | |
overflow: hidden; | |
width: 100px; | |
height: 100px; | |
"> | |
<div style="position: relative; top: 100px; width: 100px; height: 100px; background-color: red;"></div> | |
</div> | |
</div> |