summaryrefslogtreecommitdiff
path: root/test/data/parse2
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-29 17:53:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-29 17:53:22 +0000
commit1b13f81b8259f4416df7b3063cb280cb977722d7 (patch)
tree5e34f4150c1fc3bcdcd436781f4799571a40cbd4 /test/data/parse2
parent9838246d69a3d48a8d0d286ecbfcd1faa199ae91 (diff)
downloadlibcss-1b13f81b8259f4416df7b3063cb280cb977722d7.tar.gz
libcss-1b13f81b8259f4416df7b3063cb280cb977722d7.tar.bz2
Centralise handling of transparent colours.
Add support for currentColor svn path=/trunk/libcss/; revision=11525
Diffstat (limited to 'test/data/parse2')
-rw-r--r--test/data/parse2/bg.dat24
-rw-r--r--test/data/parse2/border.dat38
-rw-r--r--test/data/parse2/outline.dat20
3 files changed, 82 insertions, 0 deletions
diff --git a/test/data/parse2/bg.dat b/test/data/parse2/bg.dat
index 50c7340..0ad6444 100644
--- a/test/data/parse2/bg.dat
+++ b/test/data/parse2/bg.dat
@@ -11,6 +11,30 @@
#reset
#data
+* { background: transparent }
+#errors
+#expected
+| *
+| background-attachment: scroll
+| background-color: transparent
+| background-image: none
+| background-position: left top
+| background-repeat: repeat
+#reset
+
+#data
+* { background: currentColor }
+#errors
+#expected
+| *
+| background-attachment: scroll
+| background-color: currentColor
+| background-image: none
+| background-position: left top
+| background-repeat: repeat
+#reset
+
+#data
* { background: url("chess.png") gray 40% repeat fixed; }
#errors
#expected
diff --git a/test/data/parse2/border.dat b/test/data/parse2/border.dat
index daecf3b..cd9ab13 100644
--- a/test/data/parse2/border.dat
+++ b/test/data/parse2/border.dat
@@ -37,6 +37,44 @@
#reset
#data
+* { border: transparent; }
+#errors
+#expected
+| *
+| border-top-color: transparent
+| border-top-style: none
+| border-top-width: medium
+| border-right-color: transparent
+| border-right-style: none
+| border-right-width: medium
+| border-bottom-color: transparent
+| border-bottom-style: none
+| border-bottom-width: medium
+| border-left-color: transparent
+| border-left-style: none
+| border-left-width: medium
+#reset
+
+#data
+* { border: currentColor; }
+#errors
+#expected
+| *
+| border-top-color: currentColor
+| border-top-style: none
+| border-top-width: medium
+| border-right-color: currentColor
+| border-right-style: none
+| border-right-width: medium
+| border-bottom-color: currentColor
+| border-bottom-style: none
+| border-bottom-width: medium
+| border-left-color: currentColor
+| border-left-style: none
+| border-left-width: medium
+#reset
+
+#data
* { border: solid; }
#errors
#expected
diff --git a/test/data/parse2/outline.dat b/test/data/parse2/outline.dat
index e39fa41..363b5d9 100644
--- a/test/data/parse2/outline.dat
+++ b/test/data/parse2/outline.dat
@@ -19,6 +19,26 @@
#reset
#data
+* { outline: transparent; }
+#errors
+#expected
+| *
+| outline-color: transparent
+| outline-style: none
+| outline-width: medium
+#reset
+
+#data
+* { outline: currentColor; }
+#errors
+#expected
+| *
+| outline-color: currentColor
+| outline-style: none
+| outline-width: medium
+#reset
+
+#data
* { outline: solid; }
#errors
#expected