Re: [css3-linebox] aligning lines

On Friday 2009-01-02 18:49 -0800, Alex Mogilevsky wrote:
> It is tempting to use 'line-height' as 'grid-height'.

As Alex pointed out in a later message, I don't think this will
work, since lines that contain mixed fonts with differing metrics,
which end up with a line box height slightly larger than the
'line-height', will be forced to jump to two grid heights instead of
one.  (This happens because each inline box makes the line contain
enough space to hold the half-leading ('line-height' minus font
height) both above and below each font.  That said, this problem
doesn't occur with some non-default, but probably better, values of
'line-box-contain'.)

There's also the question of what should be aligned to the grid.  It
seems to me that the baseline is the logical thing to align,
although we'd then have to be careful of multiple baselines.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Tuesday, 6 January 2009 03:07:37 UTC