W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [css-ui] Two different colours for a "double" style outline

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Sun, 09 Apr 2017 01:09:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-292756536-1491700195-sysbot+gh@w3.org>
We do NOT need an additional property for multiple borders or outlines. There is an existing process for allowing multiple values on a given property: we just need to make `border` and `outline` a list, just like we did for `background` and friends.

Back in time, we had decided not to, because "people could always use border-image`. However, in practice we've seen that people are **very** reluctant to use `border-image` for these things, and instead hack `box-shadow` or `outline` for a 2nd (3rd, 4th, ...) border. 

Besides styling, you are making a very good accessibility case for multiple borders, since there is no existing outline color that can always be guaranteed to be have sufficient contrast with its backdrop or even be visible at all. No, not even `invert`, as the inverse of 50% gray is 50% gray.

We can certainly discuss with the WG about adding this in Backgrounds 4.

GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1172#issuecomment-292756536 using your GitHub account
Received on Sunday, 9 April 2017 01:10:04 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:11 UTC