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

Re: [csswg-drafts] 'line-height: normal' definition should reflect reality of determining based on fonts

From: Koji Ishii via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Apr 2017 06:05:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-296084448-1492754737-sysbot+gh@w3.org>
Blink does for `line-height: normal`:

1. Collect used fonts for the run.
2. For each used fonts:
  1. Compute A and D from the font metrics (note, IIUC, our A/D are slightly different from Gecko's)
  2. Compute L/2 using line spacing from the font metrics ((line spacing - (A + D)) / 2)
3. Compute the union of A' (A + L/2) and D' (D + L/2) of all used fonts.

I believe this is mostly the same as WebKit.

GitHub Notification of comment by kojiishi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1254#issuecomment-296084448 using your GitHub account
Received on Friday, 21 April 2017 06:05:45 UTC

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