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

Empty nested selector creates repeat of parent selector #221

Open
Convincible opened this issue Mar 12, 2021 · 0 comments
Open

Empty nested selector creates repeat of parent selector #221

Convincible opened this issue Mar 12, 2021 · 0 comments

Comments

@Convincible
Copy link

Convincible commented Mar 12, 2021

In sassc 2.4.0 the following code with a stray comma:

.parent {
   .child1, .child2, {
      font: Serif;
   }
}

will output:

.parent .child1, .parent .child2, .parent { font: Serif }

Note the repetition of .parent on its own. This behaviour is different to sass 2.2.0 in which the errant comma would be ignored, leading to the output:

.parent .child1, .parent .child2 { font: Serif }

As this is a breaking change between 2.2.0 and 2.4.0 (I was unable to test 2.3.0) this probably ought to be noted somewhere?

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

No branches or pull requests

1 participant