summaryrefslogtreecommitdiff
path: root/test/data/parse
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/parse
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/parse')
-rw-r--r--test/data/parse/colours.dat10
-rw-r--r--test/data/parse/properties.dat34
2 files changed, 42 insertions, 2 deletions
diff --git a/test/data/parse/colours.dat b/test/data/parse/colours.dat
index 67d5427..0ca7a31 100644
--- a/test/data/parse/colours.dat
+++ b/test/data/parse/colours.dat
@@ -45,7 +45,15 @@
#errors
#expected
| 1 *
-| 0x02000018 0x00000000
+| 0x00000018
+#reset
+
+#data
+* { color: currentColor }
+#errors
+#expected
+| 1 *
+| 0x00040018
#reset
## Out-of-range rgb() parameters
diff --git a/test/data/parse/properties.dat b/test/data/parse/properties.dat
index ac038e5..29b5eb6 100644
--- a/test/data/parse/properties.dat
+++ b/test/data/parse/properties.dat
@@ -233,6 +233,14 @@
| 0x00000002
#reset
+#data
+* { background-color: currentColor }
+#errors
+#expected
+| 1 *
+| 0x00040002
+#reset
+
##
## 03 - background-image
##
@@ -493,6 +501,14 @@
| 0x0000000b
#reset
+#data
+* { border-left-color: currentColor }
+#errors
+#expected
+| 1 *
+| 0x0004000b
+#reset
+
##
## 0c - border-top-style
## 0d - border-right-style
@@ -2283,7 +2299,7 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at
#errors
#expected
| 1 *
-| 0x00000039
+| 0x00080039
#reset
#data
@@ -2294,6 +2310,22 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at
| 0x02000039 0xffbbbbcc
#reset
+#data
+* { outline-color: currentColor }
+#errors
+#expected
+| 1 *
+| 0x00040039
+#reset
+
+#data
+* { outline-color: transparent }
+#errors
+#expected
+| 1 *
+| 0x00000039
+#reset
+
##
## 3a - outline-style
##