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

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