On Oct 12, 2009, at 9:10 PM, Alan Gresley wrote:

>> The difference you see with Gecko (but not with e.g. WebKit) is  
>> caused by the line-height. In the case of a floated :first-letter,  
>> Gecko follows this part of the spec [1]:
>
>
> Not correct. There is no change in the line-height in Gecko  
> for :first-letter. Giving line-height of any size will always be the  
> same. The height changes in Gecko for first-letter instead. Also  
> Gecko treats floated :first-letter and spans differently.
>
> <http://css-class.com/test/css/visformatting/first-letter-floated.htm>
>
> <http://css-class.com/test/css/visformatting/span-floated.htm>

Alan, did you actually read the part of the spec I quoted ? The  
specified or inherited line-height have NO effect on a floated ::first- 
letter in Gecko. Instead, it is optimised to create a line-box that  
matches perfectly the shape and size of the ::first-letter. Similarly,  
height & width have no effect in Gecko in the case of ::first-letter.  
You can however enlarge the box using padding & border, add a text- 
shadow & a box-shadow.

And yes, of course, a floated span behaves differently. It is not  
a ::first-letter.

...

> <http://css-class.com/test/css/visformatting/first-letter-floated-abc.htm 
> >

Zero out the margin on your  p, in all browsers, the first-letter will  
displace the inline content.

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [[email protected]]
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