less.js icon indicating copy to clipboard operation
less.js copied to clipboard

The guarded namespace can use when the mixin is invoked

Open lumburr opened this issue 3 years ago • 0 comments

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:

  • [x] Documentation
  • [x] Added/updated unit tests
  • [x] Code complete

lumburr avatar May 07 '22 08:05 lumburr