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

Re: [css-gcpm][css-figures] float-offset & line rhythms

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 25 Jan 2014 19:45:59 -0800
Message-Id: <B922A262-4B6E-4BCB-899F-EBE587C25B22@gmail.com>
Cc: Alan Stearns <stearns@adobe.com>, "robert@ocallahan.org" <robert@ocallahan.org>, "www-style@w3.org" <www-style@w3.org>
To: Håkon Wium Lie <howcome@opera.com>

> On Jan 25, 2014, at 2:21 PM, Håkon Wium Lie <howcome@opera.com> wrote:
> 
> one can easily set the same rhythm by setting the same font &
>    line-height properties. This would cover most use cases, I think.

Sorry, but the line-height property really sucks for baseline alignment, because it only sets the minimum height of the line. All it takes to royally screw it up is a <sup> or an <img>. 

IMO, what we need here for rhythm layouts and baseline alignment is a true 'linespacing' property that spaces all the lines of a block to an exact measure (inheritable as an exact height). Thus, if I set 'linespacing: 14px' on a paragraph, then the lines would be spaced 14px from baseline to baseline, just like leading, even if it meant the line boxes might overlap a little. The tolerance for how much they could overlap could be set with 'line-spacing-tolerance: <height>', and if 2 lines overlapped by more than that much then the second line would be moved down to the next multiple of the 'linespacing' value. Or maybe the tolerance could be based on the largest leading value in the fonts being used on that line or something.
Received on Sunday, 26 January 2014 03:46:26 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:36 UTC