cloudhead/less.js — Issue #669: Extracting alpha() fails
Author: nathanziarek
Created: 2012-02-28 20:33:32+00:00
State: open

.whatever(@color) {
-z-test: alpha(@color); /* Error */
}

.whatever(@color) {
-z-test0: hue(@color); /* Works */
-z-test1: saturation(@color); /* Works */
-z-test2: lightness(@color); /* Works */
}

.something(@color) when (alpha(@color) < .5) {
/* Fails */
}

.something(@color) when (alpha(@color) >= .5) {
/* Fails */
}

I'm trying to find a workaround to the lack of an IE-specific HEX code for semi-transparent colors, but if I can't even calculate what the alpha is on the color, I'm out of options!