Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extending inner of :not can lead to invalid css #2054

Closed
mgreter opened this issue Apr 27, 2016 · 0 comments · Fixed by #2052
Closed

Extending inner of :not can lead to invalid css #2054

mgreter opened this issue Apr 27, 2016 · 0 comments · Fixed by #2052

Comments

@mgreter
Copy link
Contributor

mgreter commented Apr 27, 2016

Extracted from #2051

:not(.thing) {
    color: red;
}
:not(.bar) {
    @extend .thing;
    background: blue;
}

Produces:

:not(.thing):not(:not(.bar)) {
  color: red; }
:not(.bar) {
  background: blue; }

But should be:

:not(.thing) {
  color: red; }
:not(.bar) {
  background: blue; }

I wonder if ruby sass actually just removes the invalidly nested :not selector.
Otherwise from what I know about extend, the result in theory doesn't look incorrect!?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants