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

Re: [CSS21] 16.3.1 text-decoration: inline box vs. inline element

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 31 Mar 2004 08:24:18 -0600
Message-ID: <406AD492.4060001@mit.edu>
To: www-style@w3.org

Adam M. Costello BOGUS address, see signature wrote:
> How can that be?  Elements are features of the document structure,
> independent of layout, right?  If the anonymous element contains both
> "Help" and the cite element, then it must contain the em element between
> them, no?

It doesn't contain both "Help" and the cite element.  They're contained 
in two different inline elements, basically.

You're right that box and element seem to be used semi-interchangeably 
here; someone who clearly understands the inline box model should reply 
to that part.

> Finally, I'm not sure whether the various decorations are supposed to be
> cummulative or mutually exclusive.  For example:
> 
>     <span style="text-decoration:underline">
>       one <span style="text-decoration:overline">two</span> three
>     </span>
> 
> Is the word "two" both underlined and overlined?  Or is it only
> overlined?

It's both overlined and underlined.  That's what the "painted across the 
whole element" means.

For a better example of what's going on,

  <span style="text-decoration:underline; color: green">
    one <span style="text-decoration:overline; color: red">two</span>
    three
  </span>

Will give "two" a green underline and a red overline.

-Boris
Received on Wednesday, 31 March 2004 09:26:23 GMT

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