CSS scrollbar-width Property Reference
The CSS scrollbar-width property is a standard property in CSS Scrollbars Styling. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
scrollbar-width overview
The CSS scrollbar-width property is a standard property in CSS Scrollbars Styling. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | auto | thin | none |
| Initial value | auto |
| Applies to | scrollingBoxes |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Scrollbars Styling |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set scrollbar-width. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
scrollbar-width: initial;
}
.inherit-example {
scrollbar-width: inherit;
}
@supports (scrollbar-width: initial) {
.supported {
scrollbar-width: initial;
}
}