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

Re: [CSS21] [css3-text] Text decoration behavior

From: Steve Zilles <szilles@adobe.com>
Date: Tue, 04 Mar 2008 13:19:20 -0800
Message-Id: <6.2.1.2.2.20080304130950.0399cb00@namailhost.corp.adobe.com>
To: fantasai <fantasai.lists@inkedblade.net>, "Paul Nelson (ATC)" <paulnel@winse.microsoft.com>
Cc: www-style@w3.org
As I understand the intent of this provision within the specification of 
'text-decoration', it is to insure that for an element, the same styling is 
applied to the whole element, whether or not it has sub-elements; whether 
or not it fits on one line or many. It further says that the natures of the 
sub-elements (a.k.a. descendants) can be considered in deciding when the 
styling to be applied is chosen. So, see comments inline below.

At 12:42 PM 3/4/2008, fantasai wrote:
>CCing www-style...
>
>Paul Nelson (ATC) wrote:
>>Spec is ambiguous
>>In determining the position of and thickness of text decoration lines,
>>user agents may consider the font sizes of and dominant baselines of
>>descendants, but must use the same baseline and thickness on each line.
>>"on each line" - of text, each element?
>
>Append "for a given element" right before the first comma.

And, add "of that element" before the second comma.

>  The term
>"line" at the end of the sentence refers to "line" in the "line box"
>sense, not in the text decoration sense. I.e. all text decoration
>lines in line box L that are generated by the 'text-decoration' value
>on element E must be drawn with the same color, thickness, and position
>with respect to element E's primary baseline.
>
>It's possible "on each line" should be "throughout each line" so that
>it's clear averaging can take place on a per-line basis. If not, we may
>need to clarify that it can't. I'd check with Michel Suignard if you can.

I think that "on each line" should instead be "throughout the element" 
because I do not believe the 'text-decoration' should change when the 
window is resized causing an element that was on one line to move to two 
lines. It might be reasonable to add, after "element" above, "and on each 
line in which the element appears". This latter addition would make clear 
that the same position is used on every line, although that is implied by 
"throughout the element".


>~fantasai

         Steve
=====================================
Steve Zilles
115 Lansberry Court,
Los Gatos, CA 95032-4710
steve@zilles.org 
Received on Tuesday, 4 March 2008 21:19:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT