W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: [css3-text] computed value of 'text-decoration-color'

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 29 Mar 2011 16:36:07 -0700
Message-ID: <4D926CE7.2050701@inkedblade.net>
To: "L. David Baron" <dbaron@dbaron.org>
CC: www-style@w3.org
On 03/29/2011 04:25 PM, fantasai wrote:
> On 03/28/2011 04:44 PM, L. David Baron wrote:
>> http://dev.w3.org/csswg/css3-text/#text-decoration-color says the
>> computed value of 'text-decoration-color' is "as specified". This
>> is inconsistent with other properties that accept 'currentColor'
>> such as http://www.w3.org/TR/css3-background/#the-border-color and
>> should instead say "the computed color" so that the value
>> 'currentColor' is inherited as a color.
>
> That's a very good point. 'currentColor' is defined to compute to
> a color value. But what we need here (and in 'text-shadow', per
> Estelle's comments) is a value that inherits as itself.
>
> We didn't have this problem before because border-color is not an
> inherited property, so its behavior wrt inheritance was not important.

So, we have two options here:
   - Create a keyword that is the same as currentColor except that it
     inherits as itself, just sets the *used* value of the color to the
     value of 'color'.
   - Make text-decoration-color not inherit. (This is reasonable because
     'text-decoration' itself doesn't inherit.)

I'm going to go with the second option for right now. It doesn't solve
the text-shadow issue, though.

~fantasai
Received on Tuesday, 29 March 2011 23:36:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT