W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

Re: [csswg-drafts] [css-inline] Consistent vertical positioning of large and medium-sized text across OSs

From: Tobi Reif via GitHub <sysbot+gh@w3.org>
Date: Fri, 16 Feb 2018 17:57:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-366310641-1518803869-sysbot+gh@w3.org>
Thanks for caring!

> Does this happen for all fonts?

To the extreme extent shown in the screenshots it happens to just a subset of the web-fonts I checked. But sometimes I do use fonts where it happens to that extreme extent, and for these cases it would be really great to have some (nice and quick to use) solution. It should be as easy as adding one line of CSS, without having to get the font metrics, for example 😀

> Do you get better results with line-height: normal or with less mixing of units?

Here's a version with line-height:normal and only em units (both regarding the h1):

https://tobireif.com/non_site_stuff/test_case_for_font_position_report_yet_another_font_line-height_normal_just_em_units/

Screenshot of that page in Chrome on MacOS:

![z90c075c7a1c62e3f10b](https://user-images.githubusercontent.com/80411/36321604-9e035454-134a-11e8-9537-55405fe412cc.png)

Screenshot of that page in Chrome on Windows:

![zce0ac738eca40d4ab87](https://user-images.githubusercontent.com/80411/36321633-b52e3cd4-134a-11e8-8526-cadf5e99e0c6.png)


-- 
GitHub Notification of comment by tobireif
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2228#issuecomment-366310641 using your GitHub account
Received on Friday, 16 February 2018 17:57:53 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:46 UTC