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

Double-check you're using the right language #79

Open
jyasskin opened this issue Mar 31, 2022 · 2 comments
Open

Double-check you're using the right language #79

jyasskin opened this issue Mar 31, 2022 · 2 comments
Labels
spec-text Wording/algorithm improvements
Milestone

Comments

@jyasskin
Copy link
Member

As mentioned in whatwg/html#7757, many other specs that need a default language use the document's language rather than the user's language. Since the font name is expected to be presented inside the document, it might work better if this spec switches to the document's language.

However, it's not obvious what to do inside of a Worker if we want to default to the document's language.

@inexorabletash inexorabletash added this to the MVP milestone Apr 1, 2022
@inexorabletash
Copy link
Member

Thanks for filing this. This is additionally challenging in that apparently many OS APIs for enumeration don't provide all the strings and let the caller decide which localization to use; instead they only return data for the "current locale".

I haven't checked whether this means current browsers are not conforming per https://www.w3.org/TR/css-fonts-4/#local-font-fallback or not - User agents that also match other full font names, e.g. matching the Dutch name when the current system locale is set to Dutch, are considered non-conformant. - I suspect (but don't know!) that all browsers are non-conformant, and therefore the spec text is aspirational.

Given that, I don't know whether it's best to (1) describe the unpleasant reality here, (2) describe the aspirational state, and declare reality non-conforming, or (3) leave it ambiguous and hope no-one notices...

@jyasskin
Copy link
Member Author

jyasskin commented Apr 4, 2022

Maybe describe the aspiration as a SHOULD, and also say implementations MAY obey reality?

I didn't see a test for the css-fonts-4 line in wpt.fyi, but I might have missed the right search term. It's probably worth filing a bug with them to at least test their aspirational claim ... although that might require some difficult changes to the web-platform-tests machine setup. w3c/csswg-drafts#3177 is related, but seems to be about clarifying the aspiration rather than writing a test for it.

@inexorabletash inexorabletash added the spec-text Wording/algorithm improvements label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec-text Wording/algorithm improvements
Projects
None yet
Development

No branches or pull requests

2 participants