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

RE: Line layout in browsers

From: Bruno Fassino <fassino@gmail.com>
Date: Wed, 23 Jan 2008 21:57:45 +0100
To: "'David Perrell'" <davidp@hpaa.com>, <www-style@w3.org>
Message-ID: <001601c85e02$a48b3070$6905a8c0@bruno>

David Perrell wrote:

> ALSO, I'm still curious regarding the logic behind the
> vertical positioning
> of text within line boxes. I set up a series of DIVs with 100px font
> size and >= line heights (http://www.hpaa.com/css2/span.htm) and
> found that text
> is too low relative to the box in both FF and Opera on Win2K. CSS 2.1,
> section 10.8.1 states: "User agents center glyphs vertically
> in an inline box..." That is clearly not the case here.

If you add a bordered span wrapping your text, you will see that this span (which I believe delimits what the spec calls content area) is correctly vertically centered in the inline box. Your glyphs are apparently appear low inside this area, but if you consider that there are characters with a higher ascent that those that you used (like È) then all looks correct (that's your page with these additions http://brunildo.org/test/test/lh_span.html .)


-- 
Bruno Fassino http://www.brunildo.org/test
Received on Wednesday, 23 January 2008 20:58:06 GMT

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