summaryrefslogtreecommitdiff
path: root/test/data/parse/colours.dat
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-12-05 00:05:01 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-12-05 00:05:01 +0000
commitd810646b94eab2f00592bb4476b8f32937f7c2c5 (patch)
treee8a89840042821c3828d072be04b07c15a200321 /test/data/parse/colours.dat
parent5ad2047d9280f16510e15782df76256e52b31e68 (diff)
downloadlibcss-d810646b94eab2f00592bb4476b8f32937f7c2c5.tar.gz
libcss-d810646b94eab2f00592bb4476b8f32937f7c2c5.tar.bz2
Add support for rgba() colours. Thanks jmb.
svn path=/trunk/libcss/; revision=10993
Diffstat (limited to 'test/data/parse/colours.dat')
-rw-r--r--test/data/parse/colours.dat16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/data/parse/colours.dat b/test/data/parse/colours.dat
index 1e7b940..f359a68 100644
--- a/test/data/parse/colours.dat
+++ b/test/data/parse/colours.dat
@@ -74,3 +74,19 @@
| 0x02000018 0xff000000
#reset
+#data
+* { color: rgba(255, 0, 0, 0) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0x00ff0000
+#reset
+
+#data
+* { color: rgba(255, 0, 0, 0.5) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0x7fff0000
+#reset
+