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

Re: line-height limitations

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 18 Mar 2011 15:08:34 -0700
Message-Id: <C8F8CF74-D1A6-4007-AAA0-7A5A7FBE29E2@gmail.com>
Cc: David Woolley <forums@david-woolley.me.uk>, www-style CSS <www-style@w3.org>
To: David Hyatt <hyatt@apple.com>
On Mar 18, 2011, at 9:57 AM, David Hyatt <hyatt@apple.com> wrote:

>> So in the limited case of David's stated problem, it does not sound like we need a new property. Instead, the problem can be easily solved by using ems for the line-height.
> I suppose the rule would be something like:
> ::first-line * { line-height:1em }
> And you're right that would work.  You would lose some extra spacing above the ascent from discarding the built-in line spacing of the larger font though, although you would lose that with a "glyphs" value of line-box-contain as well.

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?
Received on Friday, 18 March 2011 22:09:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:44 UTC