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

Thanks David,

That document has had a lot of thought and work put into it. I must admit, I’m surprised line-height doesn’t use a baseline but I guess CSS started out more markup-based than design-based (the basic building blocks of layout are still missing IMO).

I find the language of the W3C confusing and academic but I believe the 'line-box-contain’ property and the various baseline properties are exactly what I’m looking for.

Not sure how things work but is there a way to vote or ensure this work gets incorporated into the spec?

Cheers

Ben



On 10/12/2014, at 6:02 am, L. David Baron <dbaron@dbaron.org> wrote:

> 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)


___

Ben Sciascia

Sciascia Brothers
Level 1, 56 Brown Street, Ponsonby
PO Box 68-578 Newton,
Auckland, New Zealand

PH: +649 360 0559
FAX: +649 360 0012
MOB: +64 21 44 33 66

www.sciascia.co.nz

ben.sciascia@sciascia.co.nz

WARNING: This e-mail contains information which is CONFIDENTIAL and may be subject to LEGAL PRIVILEGE. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy the e-mail or attachments.  If you have received this message in error, please telephone us immediately and destroy the original message.

Received on Wednesday, 17 December 2014 12:47:43 UTC