less.js
less.js copied to clipboard
Mixin followed by !important is not correctly compiled
Hi,
I have noticed a inconsistency between the documentation and the functioning of less.
In the documentation, adding !important to the mixin should result in the !important being added to all the css declarations inside the mixin. However, this is not the case. Upon compiling, the css does not contain the !important.

You can check it on less online playground.
.foo (@bg: #f5f5f5; @color: #900) {
background: @bg;
color: @color;
}
.unimportant {
.foo();
}
.important {
.foo() !important;
}