cloudhead/less.js — Issue #552: mix color function is broken
Author: leafo
Created: 2012-01-09 01:35:42+00:00
State: open

Compare LESS output and SASS output:

LESS:

@a: rgb(255,255,255);
@b: rgb(0,0,0);

.mix {
color: mix(@a, @b, 50%);
}

SASS:

$a: rgb(255,255,255);
$b: rgb(0,0,0);

.mix {
color: mix($a, $b, 50%);
}

LESS output is `#808080` and SASS output is `#7f7f7f`.

I looked at the source code code and it looks like the SASS implementation was copied verbatim into LESS, which depends on some SASS implementation detail.