tests: Add a test ensuring currentColor is parsed everywhere

This commit is contained in:
Benjamin Otte 2012-04-05 22:29:07 +02:00
parent 505fefbec7
commit 0048c8baf5
2 changed files with 22 additions and 0 deletions

View File

@ -185,6 +185,7 @@ EXTRA_DIST += \
css-21-malformed-statements.css \
css-21-malformed-statements.errors \
css-21-malformed-statements.ref.css \
currentcolor-everywhere.css \
declarations.css \
declarations.errors \
declarations.ref.css \

View File

@ -0,0 +1,21 @@
@define-color some-color currentColor;
a {
color: currentColor;
}
b {
color: shade (currentColor, 1.5);
}
c {
color: alpha (currentColor, 0.5);
}
d {
color: mix (currentColor, @some-color, 0.5);
}
e {
color: mix (@some-color, currentColor, 0.5);
}