[gtk+/wip/cssvalue: 129/165] tests: Add a test ensuring currentColor is parsed everywhere



commit d405754f3218b99e660da78b66d923f9b9e57f1e
Author: Benjamin Otte <otte redhat com>
Date:   Thu Apr 5 22:29:07 2012 +0200

    tests: Add a test ensuring currentColor is parsed everywhere

 tests/css/parser/Makefile.am                 |    1 +
 tests/css/parser/currentcolor-everywhere.css |   21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index bc9cf33..dcc8b82 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -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 \
diff --git a/tests/css/parser/currentcolor-everywhere.css b/tests/css/parser/currentcolor-everywhere.css
new file mode 100644
index 0000000..6198fb0
--- /dev/null
+++ b/tests/css/parser/currentcolor-everywhere.css
@@ -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);
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]