scrollbar-gutterBaseline · Newly available
The scrollbar-gutter CSS property reserves space for the scrollbar, preventing unwanted layout changes as the scrollbar appears and disappears.
Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Dec 11, 2024.
Browser support
DesktopChrome
1–93Not supported
94+Supportedsince Sep 21, 2021
Current: 155Edge
12–93Not supported
94+Supportedsince Sep 24, 2021
Current: 154Firefox
1–96Not supported
97+Supportedsince Feb 8, 2022
Current: 157Safari
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27MobileChrome Android
18–93Not supported
94+Supportedsince Sep 21, 2021
Current: 155Firefox Android
4–96Not supported
97+Supportedsince Feb 8, 2022
Current: 157Safari iOS
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27How to use
Every current browser supports this, but it only became Baseline on Dec 11, 2024. Use it as a progressive enhancement, or keep a fallback if you support older devices.
Example
Full syntax and examples are on MDN: scrollbar-gutter.
Feature detection
CSS · check before using
@supports (scrollbar-gutter: initial) {
/* styles that rely on scrollbar-gutter */
}
/* or in JavaScript */
if (CSS.supports("scrollbar-gutter", "initial")) {
// use it
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (3). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| scrollbar-gutter | 94 | 94 | 97 | 18.2 | 94 | 97 | 18.2 |
| scrollbar-gutter.auto | 94 | 94 | 97 | 18.2 | 94 | 97 | 18.2 |
| scrollbar-gutter.stable | 94 | 94 | 97 | 18.2 | 94 | 97 | 18.2 |