Re: [csswg-drafts] [css-fonts-4] Animation type font-weight, discrete?

There is a small behavior change here. 🙁

Consider animating font-weight between 400 and 600, and at the current time, the "real number" is 425.

In the old model, 425 gets rounded to 400, which causes the [old font matching algorithm](https://drafts.csswg.org/css-fonts/#font-style-matching) to search the following list:
400, 500, 300, 200, ...

In the new model, 425 doesn't get rounded, and the [new font matching algorithm](https://drafts.csswg.org/css-fonts-4/#font-style-matching) searches the following list:
425, ..., 400, ..., 300, ..., 200, ..., 500

Therefore, if the system has installed fonts at weights of 500 and 300, in the first model, the 500-weight font will be selected, and in the second model, the 300-weight font will be selected.

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

Received on Thursday, 3 August 2017 09:41:53 UTC