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

Spaces inserted inside a :not() selector when using @content #1025

Closed
mgol opened this issue Apr 1, 2015 · 1 comment · Fixed by #1039
Closed

Spaces inserted inside a :not() selector when using @content #1025

mgol opened this issue Apr 1, 2015 · 1 comment · Fixed by #1039

Comments

@mgol
Copy link

mgol commented Apr 1, 2015

The following SCSS:

@mixin m() {
    .a & {
        @content;
    }
}

:not(:last-of-type) {
    top: 10px;
    @include m {
        top: 10px;
    }
}

libsass from node-sass 3.0.0-beta.4 turns into:

:not(:last-of-type) {
  top: 10px; }
  .a :not(  :last-of-type) {
    top: 10px; }

Note the two spaces before the second :last-of-type.

Latest Ruby Sass gives:

:not(:last-of-type) {
  top: 10px; }
  .a :not(:last-of-type) {
    top: 10px; }
@mgol
Copy link
Author

mgol commented Apr 2, 2015

Spec submitted: sass/sass-spec#297

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

Successfully merging a pull request may close this issue.

2 participants