dotless/dotless — Issue #127: Does dotless support guarded parametric mixins?
Author: NickLarsen
Created: 2012-02-17 16:50:42+00:00
State: open

Here is the part of the spec I am having trouble with. http://lesscss.org/#-pattern-matching-and-guard-expressions

@show-image: true;

.testimg() when not (@show-image) {
display: none;
}

.testimg() when (@show-image) {}

img.test {
.testimg;
color: green;
}

The above compiles correctly with less.js and gives the following error when using dotless 1.2.2.0:

![error image](http://i.imgur.com/y77hA.png)