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

[csswg-drafts] [css21][css-inline] height of inline box with line-height:normal and primary font not used

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Sep 2017 10:18:51 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-256652192-1505125121-sysbot+gh@w3.org>
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css21][css-inline] height of inline box with line-height:normal and primary font not used ==
**This is part of the #1796 series. Read that issue for context**

[Test source](https://github.com/frivoal/web-platform-tests/blob/line-height-experiments/css/css-line-height/line-height-012.html)
[Ref source](https://github.com/frivoal/web-platform-tests/blob/line-height-experiments/css/css-line-height/reference/line-height-006-ref.html)
[Live test](https://rawgit.com/frivoal/web-platform-tests/line-height-experiments/css/css-line-height/line-height-012.html)
[Live ref](https://rawgit.com/frivoal/web-platform-tests/line-height-experiments/css/css-line-height/reference/line-height-006-ref.html)

As seen in the test above, in the general case, if a inline-level box contains only characters from fallback fonts, all browsers agree to size the height of a `line-height:auto` inline-level box using the metrics of the fonts actually used **plus** the metrics of the primary font, even if it is not used. I.E. they take the strut into account.

However, see #1798 for a possible exception.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1800 using your GitHub account
Received on Monday, 11 September 2017 10:18:45 UTC

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