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

Should throw error when root selector has "&" #325

Closed
nschonni opened this issue Apr 2, 2014 · 3 comments · Fixed by #927
Closed

Should throw error when root selector has "&" #325

nschonni opened this issue Apr 2, 2014 · 3 comments · Fixed by #927
Assignees
Milestone

Comments

@nschonni
Copy link
Collaborator

nschonni commented Apr 2, 2014

In the Ruby Sass 3.2/3.3 the following will throw the error "Base-level rules cannot contain the parent-selector-referencing character '&'."

&.bar {
  color: red;
}
@mike-spainhower
Copy link

👍 Just ran into this.

@mgreter mgreter added this to the 3.2 milestone Mar 9, 2015
@mgreter mgreter self-assigned this Mar 9, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Mar 9, 2015
Adds block stack for parser to do this check!
Fixes sass#325
@mike-spainhower
Copy link

Thanks @mgreter ❤️

@mgreter
Copy link
Contributor

mgreter commented Mar 10, 2015

Well, we have one regression with this fix in #930, so I'm not yet sure if we can keep this in for 3.2!

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.

4 participants