Re: [csswg-drafts] [css-overflow-4] scrollbar-gutter is too complex (#4674)

A clear use case for ` both` happens when applying ` scrollbar-gutter` to the root element: without `both`, the page content will be permanently skewed to one side instead of centred in the viewport.

Left: `html { scrollbar-gutter: stable; }`
Right: `html { scrollbar-gutter: stable both; }`

![bothinroot](https://user-images.githubusercontent.com/1412060/115885905-5d709200-a48b-11eb-8ad0-567322b68726.png)

Note that without `both` there isn't an easy way to move from the scenario on the left to the scenario on the right using only CSS. IMHO the usefulness of this value would justify the small increase in complexity.

@chrishtr @emilio @bmathwig @bradkemper 

-- 
GitHub Notification of comment by felipeerias
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4674#issuecomment-825728057 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 April 2021 15:15:13 UTC