Skip to content

[css-font-loading] "Invalid" @font-face rules shouldn't create FontFace objects #1684

@tabatkins

Description

@tabatkins

In #1133 we decided that an @font-face rule without its minimum required descriptors should be treated as valid (so it shows up in the OM), but just doesn't define a font face for the document.

Currently I generate CSS-connected FontFace objects for every @font-face rule, assuming that if they exist they're valid. I should instead tie it to whether they define a font face for the document, so those "invalid" @font-face rules don't define a FontFace.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions