W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

Re: [csswg-drafts] [css-inline-3] Propose N/A value for em-top and em-bottom baselines (#5380)

From: Koji Ishii via GitHub <sysbot+gh@w3.org>
Date: Sat, 01 Aug 2020 15:37:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-667549661-1596296240-sysbot+gh@w3.org>
Tests for cases I briefly explained in the meeting on Windows:
![image](https://user-images.githubusercontent.com/1274377/89104741-8f058100-d456-11ea-9477-66bacf3ac088.png)
The blue lines are baseline/ascent/descent (for Windows), red lines are em-top/em-bottom computed by the currently proposed logic in #5312:
```
p = 1em/(ascent - descent);
return (ascent*p, descent*p);
```

MSGothic is an early '90s font, has small internal leading, so the logic works. Meiryo, our current default Japanese font, has modern metrics (big internal leading) but doesn't have the `BASE` table yet. Yu is newer than Meiryo, has similar metrics as Meiryo, but it has the `BASE` table, so we don't have to worry about.

-- 
GitHub Notification of comment by kojiishi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5380#issuecomment-667549661 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 1 August 2020 15:37:24 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC