Changed parser to avoid all alpha() calls being parsed as IE style functions and added relevant tests. Fixes #669

Conflicts:

	test/css/colors.css
	test/less/colors.less
This commit is contained in:
DocLabyrinth
2012-03-04 21:55:54 +00:00
committed by Luke Page
parent 3be05a1c7b
commit e6e41fac6f
3 changed files with 42 additions and 4 deletions

View File

@@ -66,5 +66,23 @@
.transparent {
color: transparent;
background-color: rgba(0, 0, 0, 0);
}
background-color: rgba(0, 0, 0, 0);
}
#alpha {
@colorvar: rgba(150, 200, 150, 0.7);
#fromvar {
opacity: alpha(@colorvar);
}
#short {
opacity: alpha(#aaa);
}
#long {
opacity: alpha(#bababa);
}
#rgba {
opacity: alpha(rgba(50, 120, 95, 0.2));
}
#hsl {
opacity: alpha(hsl(120, 100%, 50%));
}
}