W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Tue, 31 Jul 2018 06:44:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-409113109-1533019468-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 31 July 2018 06:45:56 UTC