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.

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

scrollbar-width formal syntax
FieldValue
Formal syntaxauto | thin | none
Initial valueauto
Applies toscrollingBoxes
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Scrollbars Styling
StatusStandard

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.

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

Description

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

References

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

Similar or alternative tools

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