-
Notifications
You must be signed in to change notification settings - Fork 324
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
An at-rule name parsing issue (double hyphen) #1218
Comments
Found it! This happens because the I've got a simple workaround, will make a PR soon. |
mvasilkov
added a commit
to mvasilkov/clean-css
that referenced
this issue
Apr 3, 2022
mvasilkov
changed the title
(Seems to be a) @keyframes name parsing issue
An at-rule name parsing issue (double hyphen)
Apr 3, 2022
jakubpawlowicz
pushed a commit
that referenced
this issue
Jul 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Configuration options
The ones
clean-css-cli
uses when run with no arguments.Input CSS
Actual output CSS
It prints the following warning:
And then the CSS is as follows:
Expected output CSS
What seems to be the issue
I noticed that when I rename
Toast--spinner
to sayToast-spinner
(one hyphen), the bug doesn't reproduce.At first I though that I've hit a CSS spec edge case, but it doesn't seem to be the case:
And the custom-ident cannot start with double hyphen, but can seemingly include double hyphens (or at least I couldn't find what forbids it).
Also, making it a string
@keyframes "Toast--spinner"
doesn't help either.(The CSS in question is GitHub's own Primer.css)
The text was updated successfully, but these errors were encountered: