CSS scrollbar-color Property Reference
The CSS scrollbar-color property is a standard property in CSS Scrollbars Styling. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
scrollbar-color overview
The CSS scrollbar-color property is a standard property in CSS Scrollbars Styling. Review its formal syntax, computed behavior, and practical declarations.
The computed value normally inherits from the parent element when no declaration wins the cascade.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | auto | <color>{2} |
| Initial value | auto |
| Applies to | scrollingBoxes |
| Inherited | Yes |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | byComputedValueType |
| Media | visual |
| Specification group | CSS Scrollbars Styling |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set scrollbar-color. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
scrollbar-color: initial;
}
.inherit-example {
scrollbar-color: inherit;
}
@supports (scrollbar-color: initial) {
.supported {
scrollbar-color: initial;
}
}