8000 [css-fonts] Handling of @font-face rule which lacks font-family or src descriptor · Issue #1133 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

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

@upsuper

Description

@upsuper

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0