8000 [css-font-loading] FontFace constructor section 2.1 need clarifying · Issue #4771 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-font-loading] FontFace constructor section 2.1 need clarifying #4771

@nmoucht

Description

@nmoucht

https://drafts.csswg.org/css-font-loading/#dom-fontface-fontface

Section 2.1:

"If any of them fail to parse correctly, reject font face’s [[FontStatusPromise]] with a DOMException named "SyntaxError", set font face’s corresponding attributes to the empty string, and set font face’s status attribute to "error". Otherwise, set font face’s corresponding attributes to the serialization of the parsed values."

This section should specify when there is a parsing failure, if the all of the font face's attributes should be empty string, or just those that failed to parse. Currently Firefox and Chrome seem to set all attributes to some default string when there is a parsing error, rather than an empty string, so some clarification to this section would be beneficial to have the same behavior across all browsers.

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