Re: Need clarifications about text

Jon Ferraiolo wrote:
> 
> Chris,
> 
> At 03:35 PM 4/25/00 +0200, Chris Lilley wrote:
> >...snip...
> >However, I would check what happens with text-decoration: underline. IIRC
> >the underline is not inherited and would thus have the horizontal gradient.
> 
> The CSS2 spec says that any decorations should be colored using the 'color'
> property value.

Yes. So this:

foo { color: red; text-decoration: underline; display: block }
bar { color: green; display: inline }


applied to this

<foo>
  My underlining is red
  <bar>and so is mine!</bar>
  Amazing.
</foo>


gives green text "and so is mine!" with red underlining.


> And even though the decoration property value is not
> inherited (in terms of actual property values), it behaves to a large
> degree as if it were inherited in that all descendants without a specified
> value are decorated.

Yes, but decorated by the ancestor.

> Wouldn't you agree that the parallel construction with SVG would be to say
> that the decoration is painted using the same fill and stroke properties as
> the corresponding text?

I agree that this is parallel, and would be sensible. Note that this is a
change or extension to the text-decoration property compared to CSS2. 

--
Chris
> 
> Jon

Received on Tuesday, 25 April 2000 12:11:51 UTC