-
Notifications
You must be signed in to change notification settings - Fork 715
[css-scrollbars] Shorthand for scrollbar colors (maybe also colors + width)? #2879
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
Comments
This seems reasonable to me. Now that we also have 'scrollbar-width', do we also want a 'scrollbar' shorthand to do both colors and the width? Can we rename this issue to something like: Let’s use this issue to discuss scrollbar shorthands in general. (Originally published at: http://tantek.com/2018/185/t3/) |
How about |
A Definitely in favor of a |
There was concern raised in our Intent to Implement that, what should happen when one of the color is specified, while the other is not. It's probably a reasonable concern, and the UA would probably be required to either derive the other color to ensure contrast, or avoid showing custom scrollbar in that case. I'm now thinking about using a single What do you think about this? |
So in #3065, the two scrollbar color properties are merged into one, so if we are adding a shorthand, that would be one consisting of scrollbar-color and scrollbar-width. For such shorthand, it seems the only usecase would be to reset everything to |
So I don't think a shorthand consisting of @tantek brought to me that a The difference is that, all subproperties of While Because of that, I don't think a general |
OK, let's close it. If we want the |
Authors would generally want to set both scrollbar colors together, so it may make sense to have a shorthand for them. Maybe something like
scrollbar-color
with two colors?cc @tantek
The text was updated successfully, but these errors were encountered: