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

[csswg-drafts] [css-fonts] Handling of @font-face rule which lacks font-family or src descriptor

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Mar 2017 08:36:28 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-217485904-1490690187-sysbot+gh@w3.org>
upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts] Handling of @font-face rule which lacks font-family or src descriptor ==
The spec currently says:
> `@font-face` rules require a font-family and src descriptor; if either of these are missing, the @font-face rule is invalid and must be ignored entirely.

It defines a `@font-face` rule to be invalid if either font-family or src descriptor is missing, but it is not clear what does "ignore entirely" mean here. It could mean:
* the rule should be rejected by the parser like a syntax error, or
* the rule should be parsed, but ignored for font matching.

Currently in all modern browsers, it is handled in the second approach (that is, invalid rules are NOT rejected by the parser), but the spec should really make it clear.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1133 using your GitHub account
Received on Tuesday, 28 March 2017 08:36:34 UTC

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