less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
17k stars 3.41k forks source link

The guarded namespace can use when the mixin is invoked #3725

Open lumburr opened 2 years ago

lumburr commented 2 years ago

What: fix https://github.com/less/less.js/issues/3407

Why: If a namespace has a guard, mixins defined by it are used only if the guard condition returns true.The behavior of the variables should also be consistent. image

How: In matchcondition we should let the condition evaluate.

Checklist: