Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-fonts-4] “Font fetching requirements” doesn’t fully specify necessary requirements #6076

Closed
sideshowbarker opened this issue Mar 4, 2021 · 3 comments · Fixed by #6715
Labels
css-fonts-4 Current Work

Comments

@sideshowbarker
Copy link
Contributor

The Font fetching requirements section of the CSS Fonts 4 spec doesn’t fully specify the requirements necessary for a UA to actually perform a font-fetch request and do something with the response.

https://drafts.csswg.org/css-fonts-4/#font-fetching-requirements

A patch (#5838) was recently merged that I wrote to add a part of the necessary requirements; but even with that change in place, there are still missing pieces:

  • The spec text defines how to construct a request but should also explicitly set the request mode to cors.
  • The spec doesn’t define what to do with the request; it needs to have something like, “Let response be the result of ∞fetching∞ request, where ∞fetching∞ links to the fetch algorithm in the Fetch spec.
  • The spec doesn’t define what to to with the response it gets back.

@annevk

@svgeesus
Copy link
Contributor

svgeesus commented Mar 6, 2021

The spec doesn’t define what to to with the response it gets back.

Could you point to an example of a similar spec which does define what to do with the response?

@svgeesus svgeesus added the css-fonts-4 Current Work label Mar 6, 2021
@sideshowbarker
Copy link
Contributor Author

Could you point to an example of a similar spec which does define what to do with the response?

Among CSS specs, in the CSSOM spec, the Fetching CSS style sheets algorithm:

https://drafts.csswg.org/cssom/#fetching-css-style-sheets

…and the call points for that in Requirements on User Agents Implementing the xml-stylesheet processing instruction:

https://drafts.csswg.org/cssom/#ref-for-fetch-a-css-style-sheet

…and in Requirements on User Agents Implementing the HTTP Link Header:

https://drafts.csswg.org/cssom/#ref-for-fetch-a-css-style-sheet①

@noamr
Copy link
Collaborator

noamr commented Oct 6, 2021

I believe this is potentially fixed by #6715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-fonts-4 Current Work
Projects
None yet
3 participants