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

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-006.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-006.html)
[Live ref](https://rawgit.com/frivoal/web-platform-tests/line-height-experiments/css/css-line-height/reference/line-height-006-ref.html)


If a inline-level box contains only characters from fallback fonts, we've got two different behaviors, plus a bug:
* Edge and Safari: size the height of the 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.
* Chrome: size the height of the inline-level box using **only** the metrics of the fonts actually used. I.E. it does not take the strut into account.
* Firefox has multiple behaviors it randomly switches between. In the test linked to above, FF does the same as chrome, but if you load the Firefox Torture test linked to bellow, it will randomly exhibit multiple behaviors as you reload the page. This is clearly a bug, but does not clearly indicate what behavior is intended.

I suggest we align with Edge & Safari.

----
Firefox torture test:
[Test source](https://github.com/frivoal/web-platform-tests/blob/line-height-experiments/css/css-line-height/line-height-007.html)
[Live test](https://rawgit.com/frivoal/web-platform-tests/line-height-experiments/css/css-line-height/line-height-007.html)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1798 using your GitHub account

Received on Monday, 11 September 2017 09:28:26 UTC