summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-01-21 18:17:53 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-01-21 18:17:53 +0000
commitde706a2d638bd34c9685d24f659acc95edcdaa6f (patch)
tree5f9884182749f692fc851373cb0a3929a6f4ea2f /test
parent0fdc32cccf29bc650d48f00d4370dc34c4d4b650 (diff)
downloadlibcss-de706a2d638bd34c9685d24f659acc95edcdaa6f.tar.gz
libcss-de706a2d638bd34c9685d24f659acc95edcdaa6f.tar.bz2
mostly working integer implementation
svn path=/trunk/libcss/; revision=11431
Diffstat (limited to 'test')
-rw-r--r--test/data/parse/colours-hsl.dat114
1 files changed, 114 insertions, 0 deletions
diff --git a/test/data/parse/colours-hsl.dat b/test/data/parse/colours-hsl.dat
new file mode 100644
index 0000000..7cc9ea5
--- /dev/null
+++ b/test/data/parse/colours-hsl.dat
@@ -0,0 +1,114 @@
+## simple HSL color values
+
+## red
+#data
+* { color: hsl(0, 100%, 50%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xffff0000
+#reset
+
+## yellow
+#data
+* { color: hsl(60, 100%, 50%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xffffff00
+#reset
+
+## green
+#data
+* { color: hsl(120, 100%, 50%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff00ff00
+#reset
+
+## cyan
+#data
+* { color: hsl(180, 100%, 50%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff00ffff
+#reset
+
+## blue
+#data
+* { color: hsl(240, 100%, 50%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff0000ff
+#reset
+
+## Magenta
+#data
+* { color: hsl(300, 100%, 50%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xffff00ff
+#reset
+
+## Selection of difefrnt HSL values
+
+#data
+* { color: hsl(0, 0%, 40%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff666666
+#reset
+
+#data
+* { color: hsl(12, 44%, 66%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xffCE9182
+#reset
+
+#data
+* { color: hsl(69, 22%, 11%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff202215
+#reset
+
+
+#data
+* { color: hsl(111, 22%, 33%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff476641
+#reset
+
+#data
+* { color: hsl(188, 50%, 75%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff9FD7DF
+#reset
+
+#data
+* { color: hsl(222, 22%, 22%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff2b3344
+#reset
+
+#data
+* { color: hsl(300, 30%, 30%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff633563
+#reset