W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

Re: [csswg-drafts] [css-inline] Can't specify line gaps (#5152)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Wed, 03 Jun 2020 02:40:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-637918430-1591152039-sysbot+gh@w3.org>
For the use case I am concerned about, another approach could be having a `min-line-height` property (inherited, initial value 0). With one of `line-height` or `min-line-height` set to `normal`, and the other set to a typographically desirable line size for the designated primary font, an author would get the size they want most of the time, unless some taller font gets loaded, in which case we'd increase the effective line height to make room it. (note: this too could either be an independent property or a second value / longhand).

For this use case, I think it might be better that what I said in the previous comment, as you still have the robustness factor, but have more predicable line heights than by adding some known value to the unknown size yielded by `normal`.

That wouldn't let you do the equivalent  of `line-height: calc(1 + 2px)`, but I'm not 100% sure what the use case for that one is.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5152#issuecomment-637918430 using your GitHub account
Received on Wednesday, 3 June 2020 02:40:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:27 UTC