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

Keep @charset on top. #42

Open
Treora opened this issue Jul 12, 2017 · 0 comments
Open

Keep @charset on top. #42

Treora opened this issue Jul 12, 2017 · 0 comments

Comments

@Treora
Copy link

Treora commented Jul 12, 2017

The @charset at-rule "must be the first element in the style sheet and not be preceded by any character" (see MDN).

If different files have different charsets, things could get complicated; I have not looked how this is handled currently. If they are all the same, they could be deduplicated, or just left the same: "If several @charset at-rules are defined, only the first one is used".

A quick half-fix would be to keep the @charsets in their places (so the one of the first file is used, the rest is invalid), but insert the @import statements just below the first one, rather than above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants