marklagendijk/WinLess — Issue #2: Incorrect generation issue
Author: damiengarbarino
Created: 2012-03-05 14:06:40+00:00
State: open

Winless v1.3.0

When using the following pseudo class

.opacity(@op){
opacity:@op/100;
filter:alpha(opacity=@op);
}

If I use this pseudo in several places of the same file, only the first parameter is used in filter:alpha(opacity=xx);

I have a simple test case:

.opacity(@op){
opacity:@op/100;
filter:alpha(opacity=@op);
}

.test0 {
.opacity(0);
}

.test1 {
.opacity(90);
}

.test2 {
.opacity(70);
}

.test3 {
.opacity(0);
}

Generates ===>

.test0 {
opacity: 0;
filter: alpha(opacity=0);
}
.test1 {
opacity: 0.9;
filter: alpha(opacity=0);
}
.test2 {
opacity: 0.7;
filter: alpha(opacity=0);
}
.test3 {
opacity: 0;
filter: alpha(opacity=0);
}

====

opacity is OK
filter is not OK

Thanks for this very useful tool !