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

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

From: Alan Stearns via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Sep 2017 19:35:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-332631897-1506540930-sysbot+gh@w3.org>
I agree with the point Florian made in the minutes above. The problematic case isn't one where there are some fallback fonts that cause things to be double-spaced. The real problem is if there's a fallback that causes *everything* to be double-spaced.

The simplest example I can think of is one where you have two fonts that the author specifies - FontA and FontB. FontA is present on the developer's machine, but they know it isn't present on some other platform so they list FontB as a backup. All of their content can be rendered in FontA or FontB. Unfortunately the developer does not know that FontB has metrics that make the default line-height slightly larger.

As currently defined, with line-height-step the author has to choose a value, and they will choose one that works with FontA. If the value they choose is too small, all of their content will be double-spaced on the FontB platform.

As currently defined, with line-grid the author does not choose a value. By default the line grid will be established by the font metrics of FontA on the developer's machine, and by the font metrics of FontB on its platform (since it's the first available font). So content will not be double-spaced with line-grid in this case.

Is this a fair restatement of the issue, @frivoal?

GitHub Notification of comment by astearns
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/938#issuecomment-332631897 using your GitHub account
Received on Wednesday, 27 September 2017 19:35:34 UTC

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