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

Emit a warning or error if there is a @import url() after sass imports #1524

Closed
brauliobo opened this issue Nov 14, 2014 · 3 comments
Closed

Comments

@brauliobo
Copy link

If I do

@import 'partial';
@import url('../style');

Then sass will put the @import url will appear before the imported partial's styles, changing the precedence order.

So the developers must be warning or even an error must be raise, because the precedence order is very important.

@brauliobo brauliobo changed the title Emit a warning or error if there a @import url() after sass imports Nov 14, 2014
@nex3
Copy link
Contributor

nex3 commented Nov 14, 2014

CSS requires that @import statements appear before anything else in a stylesheet (other than @charset declarations, I guess). We can't really throw an error for that case, because that breaks the ability for partials to declare CSS imports that they use (e.g. for loading font stylesheets).

@nex3 nex3 closed this as completed Nov 14, 2014
@brauliobo
Copy link
Author

What about a warning??

@cimmanon
Copy link

A warning would be rather annoying for anyone who is happily taking advantage of Sass doing the right thing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants