| <!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] --> |
| <html> |
| <head> |
| <style> |
| .scroller { |
| margin: 10px; |
| width: 300px; |
| height: 200px; |
| overflow-y: scroll; |
| border: 30px solid green; |
| padding: 20px; |
| line-height: 1.5em; |
| border-top-right-radius: 150px 267px; |
| border-bottom-left-radius: 150px 267px; |
| } |
| |
| .stacking-context { |
| position: relative; |
| z-index: 0; |
| } |
| |
| .contents { |
| width: 100%; |
| background-color: silver; |
| height: 1000px; |
| } |
| |
| .composited { |
| transform: translateZ(0); |
| } |
| |
| .scrollbar-hider { |
| position: absolute; |
| width: 17px; |
| height: 240px; |
| left: 372px; |
| top: 40px; |
| background-color: gray; |
| } |
| </style> |
| <script> |
| if (window.internals) |
| internals.setUsesOverlayScrollbars(true); |
| </script> |
| </head> |
| <body> |
| <div class="scroller stacking-context"> |
| <div class="composited contents">This is the scrolled contents</div> |
| </div> |
| <div class="scrollbar-hider"></div> |
| </body> |
| </html> |