You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since the first call exposes its top-level @width to the global scope and then this global @width overrides local @widths defined in the second call loops. I.e. the issue can be simplified to:
And this way it seems to be very close to #1316 (i.e. "global scope" > "caller scope" in certain cases).
Actually I was not sure it's #1316 (because the {width: @width} itself is "defined" at the global scope so I thought it just may pick up global variables before any other) but this:
I think that this is not really a bug, the scopes here are working as designed. Since variables are returned, first call introduces @width into the global scope. Detached ruleset then uses @width as defined in his own (global) scope.
Hi,
This is my parametric mixin contain a loop who set a @width variable and provide to ruleset :
When I call this mixin twice like that :
I have this output :
The first three are correct but the last three stay on
30px
width.Strangely, the following example has no problem :
An idea ?
Thanks.
The text was updated successfully, but these errors were encountered: