W3C home > Mailing lists > Public > www-style@w3.org > January 2006

Re: [CSS21] text-decoration on replaced elements that "contain text"

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 9 Jan 2006 00:25:21 +0000 (UTC)
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style Mailing List <www-style@w3.org>
Message-ID: <Pine.LNX.4.62.0601090022480.9516@dhalsim.dreamhost.com>

On Sat, 7 Jan 2006, Andrew Fedoniouk wrote:
> 
> I have one more:
> 
> consider following:
> 
> p { text-decoration:underline }
> p > span { display: inline-block; }
> 
> and markup:
> 
> <p>text<span>one<br>two</span>text</p>
> 
> Shall span here be underlined as single inline block
> or words 'one' and 'two' shall be underlined separately?

The spec actually mentions this case explicitly, and the answer is that 
the inline-block is treated as a single unit, the "one" does not become 
the first line. Nor is text-decoration propagated to inline-block boxes, 
that is also called out explicitly.


> And what about <select> and text-decoration:underline?

As with bz's case, the spec explicitly states that form controls are not 
yet defined in terms of CSS.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 9 January 2006 00:25:30 GMT

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