- From: David Hyatt <hyatt@apple.com>
- Date: Fri, 18 Mar 2011 17:37:15 -0500
- To: Brad Kemper <brad.kemper@gmail.com>
- Cc: David Woolley <forums@david-woolley.me.uk>, www-style CSS <www-style@w3.org>
On Mar 18, 2011, at 5:08 PM, Brad Kemper wrote: > 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? In addition to what David Baron said already, this also assumes you want to set an explicit line-height. If you want to just use the font's built-in line spacing, then setting explicit values is a problem. dave
Received on Friday, 18 March 2011 22:37:49 UTC