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

Re: [csswg-drafts] [css-fonts] font property descriptors for variable fonts

From: Sergey Malkin via GitHub <sysbot+gh@w3.org>
Date: Tue, 03 Apr 2018 18:03:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-378342446-1522778598-sysbot+gh@w3.org>
Your page suggests that Edge ignores font-weight descriptor. It is not ignored, it used for font matching. You can see [WPT tests](https://github.com/w3c/web-platform-tests/pull/9373/) we submitted for relevant test cases. Thing that we don't do is clamping. 
Descriptor play double purpose (font matching and clamping) and use cases may contradict each other. Font mapping looks more important to me than clamping. And proposed 'auto' value doesn't help here. Clamping is fine detail of restricting actual allowed axis range. I can't imagine it used widely (on purpose)and preferred over font matching logic.
One more argument for me in favor of not doing clamping automatically is that following same logic of clamping values will prohibit browsers from applying bold or italic simulation it tons of existing pages. This looks like important breaking change to me.
If clamping scenario is considered important enough, it may deserve separate descriptor similar to font-synthesis.


-- 
GitHub Notification of comment by SergeyMalkin
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2485#issuecomment-378342446 using your GitHub account
Received on Tuesday, 3 April 2018 18:03:49 UTC

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