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

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 UTC