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 18:00:27 -0800
Message-ID: <001001c614c0$767c6ce0$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 Sun, 8 Jan 2006, Andrew Fedoniouk wrote:
>>
>> Ian, what does this mean:
>> "the "one" does not become the first line"?
>
> The ::first-line pseudo-element does not match the word "one", it matches
> the first line of the block, not the inline-block.
>
>
>> 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 ?
>
> text-decoration is never inherited.
>
> I encourage you to read the specification.

Thanks :), I did. This is why I am asking.

See, spec says:
"Inherited:   no (see prose) "

This means that there are exceptions (in prose), right?

According to the illustration:

http://www.w3.org/TR/CSS21/images/underline-example.png

<em> in :

   blockquote { text-decoration: underline; color: blue; }
   em { display: block; }
   cite { color: fuchsia; }

   <blockquote>
    <p>
     <span>
      Help, help!
      <em> I am under a hat! </em>
      <cite> -GwieF </cite>
     </span>
    </p>
   </blockquote>

inherits text-decoration attribute value.
Or at least it behaves as it did.

Andrew Fedoniouk.
http://terrainformatica.com


>
>
>> And another question is:
>> <input> - is it "naturally" inline or inline-block element?
>> The same question but for <textarea>,<select> and <object>.
>
> Form controls are outside the scope of CSS2.1. <object> is either a normal
> element (like a <span>), or a replaced element (if its content is used).
>
> -- 
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
> 
Received on Monday, 9 January 2006 02:00:46 GMT

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