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

Re: [csswg-drafts] [css-conditional-3] Specific font families?

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Dec 2017 23:16:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-354194403-1514416571-sysbot+gh@w3.org>
1. You cannot reuse `font-family: georgia` like that, because that has been defined as doing only parsing. You may need function syntax, e.g. `font-family(georgia)` or something like that, which is currently reserved for future extension.
2. I don't think we can add this, because it would become an easy fingerprinting vector. I'm not sure whether it is any worse than current situation, e.g. via canvas, though.

For the use-case that fonts may have different sizes, you can probably try [`font-size-adjust` property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size-adjust) which was designed to address this issue.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2139#issuecomment-354194403 using your GitHub account
Received on Wednesday, 27 December 2017 23:16:16 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:42 UTC