W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

Re: [csswg-drafts] [css-ui-3] caret-color animations, 'auto' and 'currentColor'

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Dec 2016 10:39:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-264138258-1480588761-sysbot+gh@w3.org>
Sorry for coming back to this question, but would it be possible that 
the computed value of `currentColor` and `auto` would be a `rgb()` 
(like it happens for the rest of color properties)?
If we add some text on css-ui-3 spec similar to the one in 
[css-color-4](https://drafts.csswg.org/css-color-4/#currentcolor-color):
> This happens at used-value time, which means that if the value is 
inherited, it’s inherited as currentcolor, not as the value of the 
color property, so descendants will use their own color property to 
resolve it.

That would probably simplify the implementations, just having to 
accept `auto` as value for parsing, but behaving like a regular color 
in most of the situations.
Maybe it doesn't make sense either.

-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/781#issuecomment-264138258 
using your GitHub account
Received on Thursday, 1 December 2016 10:39:30 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:36 UTC