-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Mixins visibility across multiple &
scopes (questionable).
#1877
Comments
I could change when they are folded in so it goes back to old behaviour. |
Yes, I would vote for the old behaviour unless someone comes with an argument againts it. |
I reopen this as I faced another " Consider the following example:
Before 1.6.2 only the first
I bother with these examples because I'm working on some mixin matching improvement patch - and there the "selector.match" function (or one of its internals) looks like the correct place to handle all this, but now I'm not sure what would be the right choice (i.e. I assume the consistent behaviour for all of above cases would be either "always match" or "never match"). |
I thought about this when fixing and decided accessing mixins through I suggest we think about splitting up the eval phase into multiple visitors |
OK, I guess we'll wait for more opinions (@SomMeri?) and meanwhile I'll keep moving with both variants in mind. Ah, I forgot to mention that the main goal of my patch is to enable "matching for selectors concatenated across nesting boundary" (see #1624 example) and to do that I reworked the whole |
I would expect the latest example:
to be compiled into:
Eg.
|
Since version 1.6.2
& {}
blocks are merged together in the output (cool feature, btw.) but this also changed mixins visibility across multiple&
scopes, e.g.:result:
At first I thought it's a bug actually, but now I think it's questionable. Either way this leads to another confusing example:
Looks quite chaotic.
The text was updated successfully, but these errors were encountered: