-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
@charset
is not deprecated
#31882
Comments
The CSS syntax module relevant part is https://drafts.csswg.org/css-syntax/#charset-rule.
The current MDN text reads:
To me, the current MDN text is a good reflection of the spec. |
The spec text is aimed at implementers. For CSS authors it isn't relevant how implementers parse For CSS authors no part of the feature was deprecated. I also do not agree that the current MDN text is a good reflection of the spec. In the spec it is a note, separate from the main section. In the mdn text it is part of the first paragraph. This places greater importance on this aspect. The mdn text associates browser support with the deprecation and legacy aspect by placing it in a single sentence. While support should be irrelevant here because the feature isn't deprecated as a whole. I know the current text is causing confusion. Do you foresee an issue for CSS authors in changing the text as I suggested? |
My opinions:
Therefore I think what would both reflect the spec and developer intuition is:
|
To add more info to the context:
From above note in the spec it seems So they suggest:
In short, it is no longer an There is , however, a deprecation mentioned in the same section of the spec:
This is about mentioning encoding while linking style sheets from other languages, e.g. HTML, XML. And we have already addressed it on MDN: the |
Regarding Josh's comment above, is the language in the "changes in this spec" section helpful to refer to it as an 'encoding declaration'?
|
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/@charset
What specific section or headline is this issue about?
The intro
What information was incorrect, unhelpful, or incomplete?
What did you expect to see?
The current wording implies to CSS authors that
@charset
is deprecated.While the specification only mentions a change in how
@charset
is parsed and exposed.The feature was not deprecated.
Something like this might be better :
Do you have any supporting links, references, or citations?
w3c/csswg-drafts#9838
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: