coderef

scrollbar-colorBaseline · Newly available

The scrollbar-color CSS property sets the color of the scrollbar track and thumb.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Dec 12, 2025.

Browser support

DesktopChrome
1–120Not supported
121+Supportedsince Jan 23, 2024
Current: 155
Edge
12–120Not supported
121+Supportedsince Jan 25, 2024
Current: 154
Firefox
1–63Not supported
64+Supportedsince Dec 11, 2018
Current: 157
Safari
1–26.1Not supported
26.2+Supportedsince Dec 12, 2025
Current: 27
MobileChrome Android
18–120Not supported
121+Supportedsince Jan 23, 2024
Current: 155
Firefox Android
4–63Not supported
64+Supportedsince Dec 11, 2018
Current: 157
Safari iOS
1–26.1Not supported
26.2+Supportedsince Dec 12, 2025
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Dec 12, 2025. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN: scrollbar-color.

Feature detection

CSS · check before using
@supports (scrollbar-color: initial) {
  /* styles that rely on scrollbar-color */
}

/* or in JavaScript */
if (CSS.supports("scrollbar-color", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
scrollbar-color1211216426.21216426.2
scrollbar-color.auto1211216426.21216426.2