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

3.4: @content inside @at-root block throws an error #2260

Closed
TxHawks opened this issue Dec 20, 2016 · 1 comment
Closed

3.4: @content inside @at-root block throws an error #2260

TxHawks opened this issue Dec 20, 2016 · 1 comment

Comments

@TxHawks
Copy link

TxHawks commented Dec 20, 2016

Title: 3.4: @content inside @at-root block throws an error

Including a @content statement inside an @at-root block (inside a mixin, of course) throws an error. This worked fine in 3.3.6.

Here is a reduced test case:

input.scss

@mixin test() {
  @at-root {
    @content;
  }
}

@include test {
  .test {
    property: value;
   }
 }

libsass 3.4.0:
Throws an error:

Error: Base-level rules cannot contain the parent-selector-referencing character '&'.

  Backtrace:
    input.scss:8, in mixin `@content`
    input.scss:3, in mixin `test`
    input.scss:7
 on line 8 of input.scss:7

ruby sass 3.4.21

.test {
  property: value;
}

version info:

$ node-sass --version
node-sass       4.1.1   (Wrapper)       [JavaScript]
libsass         3.4.0   (Sass Compiler) [C/C++]
@TxHawks TxHawks changed the title 3.4: @content insdie @at-root block throws an error 3.4: @content inside @at-root block throws an error Dec 25, 2016
@mgreter mgreter self-assigned this Dec 25, 2016
@xzyfer
Copy link
Contributor

xzyfer commented Dec 28, 2016

Spec sass/sass-spec#1023

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