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 13:38:57 -0700
Message-Id: <2F1E30F3-99C6-4246-A72E-D73D04F52F0A@gmail.com>
Cc: David Hyatt <hyatt@apple.com>, "www-style@w3.org list" <www-style@w3.org>
To: Alex Mogilevsky <alexmog@microsoft.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. 


Brad Kemper

On Mar 16, 2011, at 12:17 PM, Alex Mogilevsky <alexmog@microsoft.com> wrote:

> It seems that you really want here is for first-letter to not affect line descent.
> 
>  
> 
> Would ˇ°line-heigh:fitˇ± be a reasonable way to say ˇ°calculate line height as usual, but ignore descent unless there are glyphs with non-zero descentˇ±?
> 
>  
> 
> ----
> 
>  
> 
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of David Hyatt
> Sent: Wednesday, March 16, 2011 11:41 AM
> 
> 
> (2) We could add a property just to specify this fitting behavior.  For example:
> 
>  
> 
> line-height-policy: normal | fit;
> 
>  
> 
>  
Received on Wednesday, 16 March 2011 20:39:34 GMT

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