leafo/lessphp — Issue #175: Conditional Functions
Author: schivei
Created: 2012-01-12 04:23:32+00:00
State: open

The conditional functions are failing to compile.
The compiler does not understand when I use a condition like:

. m (h @ l) {height: @ l;}
. m (w, @ l) {width: @ l;}

. {n1. m (h, 10px);}
. {n2. m (w, 10px);}

In this case (above) the result should be:

. n1 {height: 10px;}
. n2 {width: 10px;}

But the compiler returns:

. m (h, $ l) {height:;}
. m (w, $ l) {width:;}