W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: line-height limitations

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 16 Mar 2011 16:51:36 -0700
Message-Id: <E57CAFD2-A1F9-471A-B352-61B22CEAE818@gmail.com>
Cc: Alex Mogilevsky <alexmog@microsoft.com>, David Hyatt <hyatt@apple.com>, "www-style@w3.org list" <www-style@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
On Mar 16, 2011, at 1:56 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> 2011/3/16 Brad Kemper <brad.kemper@gmail.com>:
>> How about something that said not to take the glyph size and font leading
>> into account at all for line box height calculation, unless it us the only
>> thing on the line and needs to be an input into line-height (for em line
>> height, for example). Then it could also maybe solve the problem of
>> vertical-align:sup creating a big gap between two lines.
> 
> Nah, you want it to take the height of the large letter into account,
> just not the nonexistent descender.

You presume to know what I want?

First lines are not the only lines to get messed up in spite of consistent line-heights on the whole block. 


> 
> Something to keep in mind is that you do *not* want an entire line of
> text to shrink just because you happened to not use any letters with
> descenders on that line.  Hyatt's first suggestion is good in this
> respect, because it uses the line-height of the root inline box as a
> base and then just limits how much it can grow.
> 
> ~TJ
Received on Wednesday, 16 March 2011 23:52:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT