Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Passing content blocks to a mixin #59

Closed
dahlia opened this Issue Nov 6, 2012 · 3 comments

Comments

Projects
None yet
3 participants

dahlia commented Nov 6, 2012

According to the reference, SCSS has to be able to pass content blocks to a mixin. For example:

@mixin apply-to-ie6-only {
  * html {
    @content;
  }
}
@include apply-to-ie6-only {
  #logo {
    background-image: url(/logo.gif);
  }
}

has to be compiled to:

* html #logo {
  background-image: url(/logo.gif);
}

However it causes an error:

ERROR -- test.scss, line 6: top-level @include directive must be terminated by ';'

akhleung commented Nov 6, 2012

Ah, LibSass is currently only implementing Sass 3.1 features. 3.2 features will be under development for the next month or two!

Okay, mixin content should be working now!

dahlia commented Nov 27, 2012

👍

@akhleung akhleung closed this Nov 27, 2012

@anlutro anlutro pushed a commit to alprs/libsass that referenced this issue Feb 2, 2015

@hcatlin hcatlin Merge pull request #59 from lunelson/issue-353
Add test for @at-root feature
55e0dfe

@mgreter mgreter added a commit to mgreter/sass-spec that referenced this issue Apr 22, 2016

@mgreter mgreter Add todo spec test for libsass issue 59 9634754

@mgreter mgreter referenced this issue in sass/sass-spec Apr 22, 2016

Merged

Add todo spec test for libsass issue 59 #804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment