On Wednesday, September 28, 2011, Philippe Wittenbergh <e...@l-c-n.com>
wrote:
>
> On Sep 28, 2011, at 9:10 AM, Ingo Chao wrote:
>
>> http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#first-letter
>> "The ::first-letter pseudo-element represents the first letter of an
>> element, if it is not preceded by any other content (such as images or
>> inline tables) on its line."
>
> Yes, but... what with a floated image ?
> http://dev.l-c-n.com/_temp/first-letter-img.html
>
> IE 9, WebKit and Opera style the first-letter in the 3rd and 4th
paragraph. Gecko does not
>
> Philippe

Ah. Did not had a look into that page, sorry. A floated image does not sit
on the linebox where the first letter lives in. The presence of the float
just shortens the linebox.

However, the phrase " on its line " is a bit difficult, since the float spec
uses a similar phrase "on the same line" for a different thing:
http://www.w3.org/TR/CSS2/visuren.html#floats
"The IMG box is floated to the left. The content that follows is formatted
to the right of the float, starting on the same line as the float."

Ingo



Ingo
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to