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

[CSS21] line-height: CSS2.1-10.8

From: Chris H-C <formailings@gmail.com>
Date: Tue, 23 Sep 2008 16:44:05 -0400
Message-ID: <8e8d87820809231344l627ad3edtc223ab901bf167e8@mail.gmail.com>
To: www-style@w3.org
I have a simple question: what, if anything, increases the height of a line
box that has a line-height set?
I figure that an inline box with a height calculated (using the rules for
calculating the heights and margins of inline boxes) to be enough, with its
vertical alignment, to peek above or below the line height would be
satisfactory, but how about this:

line-height: 12px;
font-size: 12px;

Text: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"

In this font with this font size, the height of a non-breaking space's
'glyph' is 15px.

Would this increase the line-height to be 15px with the leading being 3px?
Or would the line-height remain 12px and just allow the glyphs to bleed?


Chris H-C
Received on Tuesday, 23 September 2008 20:44:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:39 UTC