Guarded mixins within a namespace cannot compare against variables in the same namespace
jmarquis opened this issue · 1 comments
jmarquis commented
Observe in this pen that the value of a variable (@arbitrary-limit) is overridden within the namespace when it is injected into the CSS property value. However, the mixin definition only tests against the value of the global variable. When the global variable is not present, lessc throws a compilation error: "variable @arbitrary-limit is undefined" – referring to the line that defines the guarded mixin.
This is making it impossible to declare a self-contained, non-conflicting reusable "module" of code that contains its own configuration within a namespace.
Does anyone know of a workaround? Is this intended behavior?
lukeapage commented
did you mean to add this bug here https://github.com/less/less.js/issues ?