Re: [csswg-drafts] [css-scrollbars] Shorthand for scrollbar colors (maybe also colors + width)?

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 `scrollbar-color` longhand property to replace the current two properties. It would accept value `auto | <color>{2}`, so that giving a single value is invalid, and it would either have two colors, for face and track respectively, or just `auto`.

What do you think about this?

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

Received on Tuesday, 31 July 2018 06:45:52 UTC