-
Notifications
You must be signed in to change notification settings - Fork 358
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 at-rules breaks at-rule merging #777
Comments
For a minimal reproduction: @media (a: b) {
@media (orientation: portrait) {
c {d: e}
}
f {g: h}
i {j: k}
} should produce @media (a: b) and (orientation: portrait) {
c {
d: e;
}
}
@media (a: b) {
f {
g: h;
}
i {
j: k;
}
} but actually produces @media (a: b) and (orientation: portrait) {
c {
d: e;
}
}
@media (a: b) {
f {
g: h;
}
}
@media (a: b) {
i {
j: k;
}
} |
nex3
added a commit
to sass/sass-spec
that referenced
this issue
Apr 11, 2023
nex3
added a commit
that referenced
this issue
Apr 11, 2023
nex3
added a commit
to sass/sass-spec
that referenced
this issue
Apr 11, 2023
nex3
added a commit
that referenced
this issue
Apr 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently moved from node-sass 4.12.0 to (dart-)sass 1.22.7
Upon switching, I noticed that some at-rules end up being repeated. I've tracked down the issue where upon using a nested at-rule, it breaks subsequent rules.
My project that shows the issue is here: https://github.com/clshortfuse/materialdesignweb/blob/3964f7d72f2d6753d9691ed70c8b4fc60cb52dd7/components/layout/_spec.scss
I've a smaller version of the issue available here:
https://www.sassmeister.com/gist/a66eb997749a1c088dd290c30bfd0003
On a related sidenote, I actually had rewritten a good chunk of cssnano's merge-rules plugin to do this in post-processing, and it's been commited to master, but cssnano hasn't received a version bump yet.
https://github.com/cssnano/cssnano/pull/722/files
The text was updated successfully, but these errors were encountered: