Re: line-height limitations

On Friday 2011-03-18 15:08 -0700, Brad Kemper wrote:
> Actually, what I meant is to change the UA stylesheet, so if, for example, it currently has this:
> 
> p { line-height:1.2; }
> 
> then instead you change it to this:
> 
> p { line-height:1.2em; }
> 
> Does this not fix the problem with little or no negative repercussions?

This causes multiple problems:

 * It means that <p><span style="font-size:2em">text</span></p> has
   overlapping text.

 * It means that <p>text <span style="font-size:0.7em">text</span>
   text</p> has *wider* lines on the lines with the small text
   because the half-leading for the small text is larger and thus
   extends lower.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Friday, 18 March 2011 22:21:02 UTC