Text-decoration

Where exactly should the various text-decorations be
drawn?

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

line-through 
     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).

Presumably:
line-through 
     Each glyph has a line through its middle 
...
overline 
     Each line of text has a line above it. 
Where?

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

Given 
P {t-d: underline; font: 14pt/18pt Arial}   
    and:
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.
</q>

See also: 

http://www.w3.org/TR/REC-CSS2/text.html#lining-striking-props

=====
----------------------------------------------------------
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