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

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

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 8 Jan 2006 17:17:34 -0800
Message-ID: <000c01c614ba$789dadf0$3201a8c0@Terra>
To: "Ian Hickson" <ian@hixie.ch>
Cc: "Boris Zbarsky" <bzbarsky@mit.edu>, "www-style Mailing List" <www-style@w3.org>

----- Original Message ----- 
From: "Ian Hickson" <ian@hixie.ch>
> 
> 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.

Ian, what does this mean:
"the "one" does not become the first line"?

And more: Am I right in my understanding that:

text-decoration is inheritable by pure (in-flow) block 
elements and it is not inheritable by inline blocks ?

So here:
<strike><table>...</table></strike>
content of all cells in the table will be underlined and
here:
<strike><table style="display:inline-table">...</table>
</strike>
will be not.

And another question is:
<input> - is it "naturally" inline or inline-block element?
The same question but for <textarea>,<select> and <object>.


Andrew Fedoniouk.
http://terrainformatica.com
Received on Monday, 9 January 2006 01:17:55 GMT

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