This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The scrollbar-width property allows the author to set the maximum thickness of an element’s scrollbars when they are shown.

Value not found in DB!


/* Keyword values */
scrollbar-width: auto;
scrollbar-width: thin;
scrollbar-width: none;

/* <length> values */
scrollbar-width: 1em;   /* A valid length */

/* Global values */
scrollbar-width: inherit;
scrollbar-width: initial;
scrollbar-width: unset;


Defines the width of the scrollbar either as an explicit non-negative <length> or a keyword. If it's a keyword, it must be one of the following values: 
auto The default scrollbar width for the platform.
thin  A thin scrollbar width variant on platforms that provide that option, or a thinner scrollbar than the default platform scrollbar width.
none No scrollbar shown, however the element will still be scrollable.

Note: User Agents must apply any scrollbar-width value set on the root element to the viewport.

Formal syntax

Syntax not found in DB!



.scroller {
  width: 300px;
  height: 100px;
  overflow-y: scroll;
  scrollbar-width: thin;


<div class="scroller">Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic. Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</div>



Specification Status Comment
The definition of 'scrollbar-width' in that specification.
Unknown Initial Definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No No63 No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No No63 No No No

Document Tags and Contributors

Contributors to this page: chrisdavidmills, rachelandrew
Last updated by: chrisdavidmills,