property
scrollbar-gutter — CSS reference
Controls reservation of space for classic scrollbars. Stable reserves a gutter for eligible boxes even without current overflow; both-edges mirrors it on the opposite inline edge. Overlay scrollbars do not reserve gutter space. Initial auto; not inherited.
Formal Syntax & Structure
css syntaxcss
auto | stable && both-edges?Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS sizing and overflow lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a,#b{width:150px;height:60px;overflow:auto} #a{scrollbar-gutter:stable both-edges} #b{scrollbar-gutter:auto}</style><body><div id="a" class="sample">Short</div><div id="b" class="sample">Short</div></body></html>