scrollbar-parts-opacity-expected.html 1.41 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
<!DOCTYPE html>

<html>
<head>
    <style>
        body {
            margin: 0;
        }
        .bar-background {
            position: absolute;
            background-color: green;
            opacity: 0.75;
        }
        
        .bar-background.vertical {
            left: 340px;
            width: 60px;
            height: 340px;
        }

        .bar-background.horizontal {
            top: 340px;
            height: 60px;
            width: 340px;
        }

        .thumb {
            position: absolute;
            background-color: navy;
            opacity: 0.5;
        }
        
        .vertical > .thumb {
            width: 60px;
            height: 145px;
        }

        .horizontal > .thumb {
            width: 145px;
            height: 60px;
        }

        .backdrop {
            position: absolute;
            top: 100px;
            left: 100px;
            height: 400px;
            width: 400px;
            background-color: gray;
        }
        
        .backdrop.vertical {
            width: 150px;
        }

        .backdrop.horizontal {
            height: 150px;
        }
    </style>
</head>
<body>

    <div class="backdrop vertical"></div>
    <div class="backdrop horizontal"></div>

    <div class="bar-background vertical">
        <div class="thumb"></div>
    </div>
    <div class="bar-background horizontal">
        <div class="thumb"></div>
    </div>
</body>
</html>