blob: db4949264eb429ef1581364801d64d90799ea889 [file] [log] [blame]
<!DOCTYPE html>
html, body {
margin: 0;
padding: 0;
.container {
width: 100px;
height: 100px;
background-color: lime;
position: relative;
.scrollbar {
background-color: #808080;
position: absolute;
.horizontal {
width: 17px;
height: 3px;
.vertical {
width: 3px;
height: 17px;
<p>You should see first 2 green boxes with overlay scrollbars.
The second box should have a scrollbar on the left.
Remaining 2 green boxes should appear without overlay scrollbars.
<div class="container">
<div class="scrollbar vertical" style="right: 4px; top: 4px;"></div>
<div class="scrollbar horizontal" style="left: 4px; bottom: 4px;"></div>
<div dir="rtl" class="container">
<div class="scrollbar vertical" style="left: 4px; top: 4px;"></div>
<div class="scrollbar horizontal" style="right: 4px; bottom: 4px;"></div>
<div class="container"></div>
<div dir="rtl" class="container"></div>