scrollbar-color
MDN The scrollbar-color CSS property sets the color of the scrollbar track and thumb.
.scroller {
width: 300px;
height: 100px;
overflow-y: scroll;
scrollbar-color: #000077 #bada55;
} <div class="scroller">
Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion
daikon amaranth tatsoi tomatillo melon azuki bean garlic. Gumbo beet greens
corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts
fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber
earthnut pea peanut soko zucchini.
</div> Syntax
auto | <color>{2} Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
- Initial
- auto
- Applies to
- scroll containers
- Inherited
- yes
- Percentages
- n/a
- Computed value
- specified keyword or two computed colors
- Canonical order
- per grammar
- Animation type
- by computed value
Browser support
| Chrome | 121 |
|---|---|
| Edge | 121 |
| Firefox | 64 |
| Safari | 26.2 |
| Chrome Android | 121 |
| Safari iOS | 26.2 |
First version with support, from MDN browser-compat-data.