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

@at-root and #{&}(ampasant-interpolation) error #1204

Closed
suisho opened this issue May 13, 2015 · 2 comments
Closed

@at-root and #{&}(ampasant-interpolation) error #1204

suisho opened this issue May 13, 2015 · 2 comments

Comments

@suisho
Copy link

suisho commented May 13, 2015

Hello.
I use gulp-sass(2.0) and node-sass(3.0).
And I got error this code.

@mixin box-sizing-border{
  @at-root{
    #{&}{
      box-sizing: border-box;

      *, *:before, *:after {
        box-sizing: inherit;
      }
    }
  }
}

this got like this

[15:29:31] [gulp-sass] sass/bos-sizing.scss
  undefined:undefined  unknown

And I try this code, got I expected code

@mixin box-sizing-border{
  @at-root{
    $selector: &
    #{$selector}{
      box-sizing: border-box;

      *, *:before, *:after {
        box-sizing: inherit;
      }
    }
  }
}
@xzyfer
Copy link
Contributor

xzyfer commented May 14, 2015

Thanks for the report @suisho.

This code now compiles in Libsass 3.2.4 ([email protected]), but it produces the wrong output.

I've created a new issue to track the incorrect output #1210

@xzyfer xzyfer closed this as completed May 14, 2015
@suisho
Copy link
Author

suisho commented May 14, 2015

Thanks!

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