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.

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

scrollbar-color formal syntax
FieldValue
Formal syntaxauto | <color>{2}
Initial valueauto
Applies toscrollingBoxes
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typebyComputedValueType
Mediavisual
Specification groupCSS Scrollbars Styling
StatusStandard

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.

scrollbar-color live example
CSS .reset-example { scrollbar-color: initial; } .inherit-example { scrollbar-color: inherit; } @supports (scrollbar-color: initial) { .supported { scrollbar-color: initial; } }

Related references

Description

The CSS scrollbar-color property is a standard property in CSS Scrollbars Styling. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: scrollbar-color
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies