| <!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] --> |
| <html> |
| <head> |
| <style> |
| .scrollable { |
| overflow-y: scroll; |
| height: 300px; |
| width: 300px; |
| margin: 10px; |
| border: 1px solid black; |
| } |
| |
| .box.sharing { |
| background-color: blue; |
| } |
| |
| .box { |
| position: relative; |
| top: 50px; |
| left: 50px; |
| width: 180px; |
| height: 180px; |
| background-color: green; |
| } |
| |
| .spacer { |
| height: 500px; |
| } |
| </style> |
| </head> |
| <body> |
| <div class="scrollable"> |
| <div class="sharing box"> |
| <div class="inner box"></div> |
| </div> |
| <div class="spacer"></div> |
| </div> |
| </body> |
| </html> |
| |