Skip to content

[css-overflow] scrollbar-gutter: allow "auto" to be omitted #5029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
felipeerias opened this issue Apr 30, 2020 · 2 comments
Closed

[css-overflow] scrollbar-gutter: allow "auto" to be omitted #5029

felipeerias opened this issue Apr 30, 2020 · 2 comments

Comments

@felipeerias
Copy link

The signature of scrollbar-gutter (spec) indicates that one of auto, stable or always must be present, optionally followed by both and/or force:

auto | [ stable | always ] && both? && force? 

(please let me know if I am reading this incorrectly)

Since auto is the value by default, I would like to suggest that it could be omitted from the scrollbar-gutter declaration if the author is using both and/or force.

So, these declarations would be valid:

scrollbar-gutter: both;
scrollbar-gutter: force;
scrollbar-gutter: force both;
scrollbar-gutter: both force;

And their effect would be exactly the same as:

scrollbar-gutter: auto both;
scrollbar-gutter: auto force;
scrollbar-gutter: auto force both;
scrollbar-gutter: auto both force;
@tabatkins
Copy link
Member

Ah, not quite - the | binds most loosely, so the allowed values are auto by itself, or stable/always, optionally with both and/or force. You can't combine both/force with auto.

@felipeerias
Copy link
Author

I see, thank you.

@frivoal frivoal added css-overflow-4 and removed css-scrollbars-1 Current Work labels Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants