W3C home > Mailing lists > Public > www-style@w3.org > November 1999


From: Matthew Brealey <thelawnet@yahoo.com>
Date: Wed, 24 Nov 1999 04:20:34 -0800 (PST)
Message-ID: <19991124122034.4466.rocketmail@web901.mail.yahoo.com>
To: www-style <www-style@w3.org>
Where exactly should the various text-decorations be

For example, should underline go underneath the text,
and hence be unaffected by line-height?

     Each line of text has a line through the middle 

Presumably this is a minor terminoligical
inexactitude, since it is ambiguous as to whether
'line' means line box or whether it refers to the
'text box' (that is to say an imaginary box that
encloses the text).

     Each glyph has a line through its middle 
     Each line of text has a line above it. 

Above the line box?
T-d spans descendant elements, but is not inherited.

P {t-d: underline; font: 14pt/18pt Arial}   
P SPAN  {font: 12pt}

Then t-d spans the P, and one can only assume that is
meant to be placed so that the top of the font's
descenders sit on the underline.

As a result, the t-d is placed at an appropriate place
for 14pt, which will be wrong for 12pt, but since the
property is not inherited, the place for 14pt will be
the place that must be used, and thus it will not
underline the SPAN, but wil sort of line-through it.

<q cite="
http://www.w3.org/TR/REC-CSS1#text-decoration ">
E.g., if an element is
underlined, the line should span the child elements.

See also: 


From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
Received on Wednesday, 24 November 1999 07:20:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:52 UTC