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

Regression with @extends and @media #2007

Closed
xzyfer opened this issue Apr 17, 2016 · 0 comments
Closed

Regression with @extends and @media #2007

xzyfer opened this issue Apr 17, 2016 · 0 comments

Comments

@xzyfer
Copy link
Contributor

xzyfer commented Apr 17, 2016

@mgreter this regression was introduced recently in b96723b. This is currently the last issue blocking 3.3.5.

Spec sass/sass-spec#770

@mixin foo() {
  @media (mix-width: 100px) {
    @extend %bar;
  }
}

foo {
  @media (mix-width: 100px) {
    %bar {
      foo: bar;
    }
  }

  @include foo;
}

Ruby Sass

@media (mix-width: 100px) {
  foo foo {
    foo: bar; } }

LibSass

Error: You may not @extend an outer selector from within @media.
       You may only @extend selectors within the same directive.
       From "@extend %bar" on line 3 of test.scss
        on line 7 of test.scss
>> foo {
@xzyfer xzyfer added this to the 3.3.5 milestone Apr 17, 2016
xzyfer added a commit to xzyfer/sass-spec that referenced this issue Apr 17, 2016
xzyfer added a commit to xzyfer/sass-spec that referenced this issue Apr 17, 2016
xzyfer added a commit to xzyfer/sass-spec that referenced this issue Apr 17, 2016
@mgreter mgreter self-assigned this Apr 17, 2016
@mgreter mgreter closed this as completed Apr 17, 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

2 participants