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

wrong 'parent' (&) when using @at-root with nested selectors #512

Open
rnonhebel opened this issue Dec 9, 2021 · 1 comment
Open

wrong 'parent' (&) when using @at-root with nested selectors #512

rnonhebel opened this issue Dec 9, 2021 · 1 comment
Labels
bug Something isn't working spec compliance Issues with compliance to the Sass spec
Milestone

Comments

@rnonhebel
Copy link

Example:

div {
    span {
        @at-root {
            & {
                color: red;
            }
        }
    }
}

should produce (tested using https://www.sassmeister.com/, https://beautifytools.com/scss-compiler.php and https://sass.js.org/):

div span {
  color: red;
}

but using scssphp the result is:

span {
  color: red;
}
@stof stof added this to the 2.0 milestone Dec 9, 2021
@stof stof added bug Something isn't working spec compliance Issues with compliance to the Sass spec labels Dec 9, 2021
@stof
Copy link
Member

stof commented Dec 9, 2021

I'm adding that to the 2.0 milestone, as I fear it will be hard to fix it in the 1.x codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working spec compliance Issues with compliance to the Sass spec
Projects
None yet
Development

No branches or pull requests

2 participants