Philippe Wittenbergh wrote: > On the subject of IE 8 and :first-letter: I was fighting with a little > bug the other day. IE 8 (at least on Vista and Win 7 rc) incorrectly > computes the em-based values for margin/padding/border on :first- > letter. It bases its calculations on the font-size of the parent > element, not on the font-size of the :first-letter itself. > (if anyone can confirm the same issue on XP, that would be appreciated > - view the test file in IE and Firefox/safari/chrome. > > Test case: > <http://dev.l-c-n.com/IE8-w/first-letter.html> > > Philippe > --- > Philippe Wittenbergh > http://l-c-n.com/
I can confirm that this is the same of IE8 on XP. Highlighting the first-letter in you test shows that it also has space above and below the glyph (see below *). I also notice in IE8 that the top on the first-letter is level with the anonymous line box and not the text itself (the top of the letters i, d and l) as seen in Firefox. <http://css-class.com/x/first-letter-ie8.png> * This space is like another anonymous line box. I have not checked the specs so I don't know which browser is showing correct behavior. Giving it a background colour reveals it. Also any block element below it floats up underneath the first-letter. <http://css-class.com/test/bugs/ie/8/first-letter.htm> -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ 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/
