W3C home > Mailing lists > Public > www-style@w3.org > December 2014

Re: Option so line-height only affects height between lines

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 9 Dec 2014 09:02:42 -0800
To: Alan Stearns <stearns@adobe.com>
Cc: Ben Sciascia <ben.sciascia@sciascia.co.nz>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20141209170242.GA21841@crum.dbaron.org>
On Monday 2014-12-08 22:15 +0000, Alan Stearns wrote:
> I think it might be useful to have a leading-model property that allowed 
> you to change how line-height works. But it might also be more complicated 
> than it’s worth. In my experience, sticking with a single leading model is 
> the only way to reasonably lay out lines. The boundaries between leading 
> models almost never give you the results you want.

There have been two prior proposals for such properties sitting
around in the drafts of the linebox/inline module:
line-stacking-strategy (older) and my line-box-contain proposal,
which I believe we agreed to replace it with:
http://dev.w3.org/csswg/css-inline/#LineStacking

(With 'line-box-contain: block', only the block's line height sets
the line spacing.  It's a bit dangerous unless you know what's in
the block, though.)

-David

-- 
π„ž   L. David Baron                         http://dbaron.org/   𝄂
𝄒   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Tuesday, 9 December 2014 17:04:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC