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

> 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