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

Extend inside root block should error #1873

Closed
mgreter opened this issue Jan 17, 2016 · 2 comments
Closed

Extend inside root block should error #1873

mgreter opened this issue Jan 17, 2016 · 2 comments

Comments

@mgreter
Copy link
Contributor

mgreter commented Jan 17, 2016

Continued from #1651

.a {
  display: block;
}

.b {
  @at-root (with: media) {
    @extend .a;
  }
}

Should error:

Error: Extend directives may only be used within rules.

Error is disabled for now until we figure out how to handle with and without correctly

@xzyfer
Copy link
Contributor

xzyfer commented Jan 18, 2016

IIRC problem is that throw this error the wrong time. It's impossible know if something can be extended to after eval is complete.

@mgreter
Copy link
Contributor Author

mgreter commented Jan 18, 2016

Error throwing should be at the right position in the code by now.
I rather think we do not implement with/without in css bubbling.

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