[csswg-drafts] [css-scrollbars] Maybe merge the scrollbar color properties into one

upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scrollbars] Maybe merge the scrollbar color properties into one ==
As I mentioned in [#2879 (comment)](https://github.com/w3c/csswg-drafts/issues/2879#issuecomment-409113109), there was [a concern](https://groups.google.com/d/msg/mozilla.dev.platform/X_tv4aH4NxQ/y_iyHJwsCAAJ) raised that what should happen if only one of the two scrollbar color properties is specified.

The current spec says
> If scrollbar-track-color computes to auto, and scrollbar-face-color is not auto, it is used to color the scrollbar track.

which is obviously undesired. (This means you would have the scrollbar all in the same color, which is almost guaranteed to be very poor for accessibility on most platforms.)

Also nothing is mentioned for the reverse case.

I think it generally makes little sense to specify only one of the two, and it is a reasonable concern that it may lead to a style which works on some platforms but not others in some cases.

So I'm thinking about whether we should just merge the two properties into one, `scrollbar-color` which has syntax `auto | <color>{2}`, so that there are always two colors specified. (And we reserve the future possibility to convert it to a shorthand, or require only one color and derive the other.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2993 using your GitHub account

Received on Monday, 6 August 2018 01:27:08 UTC