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

if() function does not correctly evaluate the parent selector in the condition #2116

Closed
danielguillan opened this issue Jul 1, 2016 · 2 comments

Comments

@danielguillan
Copy link

danielguillan commented Jul 1, 2016

input.scss

@function foo() {
  @return if(& != null, green, red);
}

test {
  color: foo();
}

libsass 3.5.5

test {
  color: red; }

ruby sass 3.4.21

test {
  color: green; }
@xzyfer xzyfer added this to the 3.4 milestone Jul 6, 2016
@xzyfer
Copy link
Contributor

xzyfer commented Jul 6, 2016

Thanks for the report @danielguillan I can confirm this issue.

xzyfer added a commit to xzyfer/sass-spec that referenced this issue Jul 6, 2016
@xzyfer
Copy link
Contributor

xzyfer commented Jul 6, 2016

Spec added sass/sass-spec#877

@mgreter mgreter self-assigned this Jul 19, 2016
@mgreter mgreter modified the milestones: 3.3.7, 3.4 Jul 19, 2016
@xzyfer xzyfer modified the milestones: 3.3.7, 3.4 Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants