-
Notifications
You must be signed in to change notification settings - Fork 133
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
Nested @-rules #35
Comments
Confirmed, I just ran into the same exact issue. |
The same happens for Given the CSS input:
When running cssbeautify, the expected outcome would be:
However, the outcome is:
|
I've just run into this too... and swapped to using Consider the following snippet extracted from GitLab v16.6.1: @media print{@keyframes gl-spinner-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes gl-keyframes-skeleton-loader{0%{background-position-x:-32rem}100%{background-position-x:32rem}}} Running cssbeautify on this results in the following: @media print {
@ keyframes gl-spinner-rotate {
0%{transform: rotate(0)
}
100% {
transform: rotate(360deg)
}
}
@keyframes gl-keyframes-skeleton-loader {
0% {
background-position-x: -32rem
}
100% {
background-position-x: 32rem
}
}} Where the following was expected: @media print {
@keyframes gl-spinner-rotate {
0% {
transform:rotate(0)
}
100% {
transform:rotate(360deg)
}
}
@keyframes gl-keyframes-skeleton-loader {
0% {
background-position-x:-32rem
}
100% {
background-position-x:32rem
}
}
} |
beautifies to
and other nested @-rules have the same issue (separation of the "@" and loss of one level of indentation).
I'm reporting this because @-rules such as @media, @Keyframes, and @font-face are fairly common inside @-moz-document in user styles at userstyles.org
Bugzilla thread/post with links to documentation of nested @-rules
This is my first post on github - I hope I didn't do anything wrong. Please let me know if I did.
The text was updated successfully, but these errors were encountered: