W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [css-rhythm-1] Avoiding accidental double spacing

From: L. David Baron via GitHub <sysbot+gh@w3.org>
Date: Thu, 20 Apr 2017 13:59:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-295747854-1492696750-sysbot+gh@w3.org>
So on further consideration, maybe font fallback isn't as much of a problem as I thought.

In particular, line-height-step isn't actually aligning baselines to even spacing; it's aligning the line boxes.  Font fallback can cause the position of the baseline to vary within the line box, but maybe that just leads to slight baseline jitter rather than accidental double spacing.  Maybe that's not so bad.  (Although it's not great that it would defer having a solution for real baseline snapping.)

Then I think the remaining question is that we don't actually know what `line-height: normal` means (#1254), and which fonts' metrics it considers.  If all of the font metrics that could ever be considered for `line-height: normal` are considered when evaluating the step length from `line-height-step: <number>` as I propose above, then I think things would be ok.

GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/938#issuecomment-295747854 using your GitHub account
Received on Thursday, 20 April 2017 13:59:18 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:11 UTC