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 output when referencing parent selectors #137

Closed
nucleartide opened this issue Aug 24, 2015 · 2 comments
Closed

Wrong output when referencing parent selectors #137

nucleartide opened this issue Aug 24, 2015 · 2 comments

Comments

@nucleartide
Copy link

Hey all, big fan of sassc! But I'm running into some strange behavior. Compiling this file with sassc:

.mango {
  color: red;
}

.something {
  &__else {
    @extend .mango;
    color: blue;
  }
}

gives the following output:

.mango, __else.something {
  color: red; }

.something__else {
  color: blue; }

However, compiling with node-sass gives the following correct output:

.mango, .something__else {
  color: red; }

.something__else {
  color: blue; }

It seems like sassc references parent selectors improperly. Anyone know what might be going on?

Both sassc and node-sass are fresh installs. I followed the instructions here and just did an npm install for node-sass.

@xzyfer
Copy link
Contributor

xzyfer commented Aug 24, 2015

Thanks for the report @nucleartide. Sass language implementation issues tracked in https://github.com/sass/libsass.

As for why node-sass and LibSass differ here is because by following the install instructions on this repo you've install the latest development code, rather than the latest stable that node-sass uses.

@xzyfer
Copy link
Contributor

xzyfer commented Aug 24, 2015

Moved this to sass/libsass#1482

@xzyfer xzyfer closed this as completed Aug 24, 2015
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

2 participants