cloudhead/less.js — Issue #567: Overwritten mixin is called twice
Author: ramonmelo
Created: 2012-01-12 14:25:36+00:00
State: open

Definition:

@border-radius: 5px;

.border-radius(@border-radius: @border-radius) {
border-radius: @border-radius;
}

.border-radius(@topleft: @border-radius, @topright: @border-radius, @bottomright: @border-radius, @bottomleft: @border-radius) {
border-top-left-radius: @topleft;
border-top-right-radius: @topright;
border-bottom-right-radius: @bottomright;
border-bottom-left-radius: @bottomleft;
}

File:

fieldset {
.border-radius(2px);
}

Output:

fieldset {
border-radius: 2px;
border-top-left-radius: 2px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}

Using v1.2.0

Am I doing something wrong?