W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] [css-inline-3] Define rounding behavior of lines in block direction for `leading-trim` (#4045)

From: Ethan Wang via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Jul 2019 21:16:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-507847783-1562102201-sysbot+gh@w3.org>
Hey guys, before giving any suggestions, I ran into a question. Since I'm not an expert on the technical aspect of this, please bear with me if the question is silly. 

**Does this have anything to do with the font?**  I tried other fonts, it seems like Blink is only flooring for Segoe, but not for other fonts that I tried? I calculated the baselines of several fonts in the table below when the font size is set to 14px. The line heights are set to around 20px to make sure the rounding result is not equal to the flooring result.  
<img width="1253" alt="Screen Shot 2019-07-02 at 2 00 43 PM" src="https://user-images.githubusercontent.com/11395890/60546596-816d4d00-9cd2-11e9-90d2-d5a719eba332.png">

And please see the screenshot below for the comparison between Figma & Chrome (an engineer I talked to at Figma confirmed they are using rounding). Interestingly Segoe is the only one that seems to be floored? It makes me wonder if the font itself has anything to do with it?
![Screen Shot 2019-07-02 at 2 13 29 PM](https://user-images.githubusercontent.com/11395890/60547079-ab733f00-9cd3-11e9-938d-d0b1e2d33c9c.png)

GitHub Notification of comment by SashimiEthan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4045#issuecomment-507847783 using your GitHub account
Received on Tuesday, 2 July 2019 21:16:44 UTC

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