summaryrefslogtreecommitdiff
path: root/test/data/parse/properties.dat
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-16 17:09:30 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-01-16 17:09:30 +0000
commit785090a33b7bba5c555fbb7db1bf8ab62d9d2068 (patch)
tree33a82ae7a544057f83937c07ac173a06cec0c63c /test/data/parse/properties.dat
parentf8875e612a3ad21db0adc0d2cafb88aad93cb506 (diff)
downloadlibcss-785090a33b7bba5c555fbb7db1bf8ab62d9d2068.tar.gz
libcss-785090a33b7bba5c555fbb7db1bf8ab62d9d2068.tar.bz2
Tests for properties 0b to 0f.
svn path=/trunk/libcss/; revision=6089
Diffstat (limited to 'test/data/parse/properties.dat')
-rw-r--r--test/data/parse/properties.dat142
1 files changed, 142 insertions, 0 deletions
diff --git a/test/data/parse/properties.dat b/test/data/parse/properties.dat
index 1b8f690..03a7cf0 100644
--- a/test/data/parse/properties.dat
+++ b/test/data/parse/properties.dat
@@ -426,3 +426,145 @@
| 1 *
| 0x0200000a 0x00000800 0x00000000
#reset
+
+##
+## 0b - bottom
+##
+
+#data
+* { bottom: auto; }
+#errors
+#expected
+| 1 *
+| 0x0000000b
+#reset
+
+#data
+* { bottom: 0.75em; }
+#errors
+#expected
+| 1 *
+| 0x0200000b 0x00000300 0x00000002
+#reset
+
+#data
+* { bottom: 66.667%; }
+#errors
+#expected
+| 1 *
+| 0x0200000b 0x00010aab 0x00000100
+#reset
+
+##
+## 0c - caption-side
+##
+
+#data
+* { caption-side: top; }
+#errors
+#expected
+| 1 *
+| 0x0000000c
+#reset
+
+#data
+* { caption-side: bottom; }
+#errors
+#expected
+| 1 *
+| 0x0004000c
+#reset
+
+##
+## 0d - clear
+##
+
+#data
+* { clear: none; }
+#errors
+#expected
+| 1 *
+| 0x0000000d
+#reset
+
+#data
+* { clear: left; }
+#errors
+#expected
+| 1 *
+| 0x0004000d
+#reset
+
+#data
+* { clear: right; }
+#errors
+#expected
+| 1 *
+| 0x0008000d
+#reset
+
+#data
+* { clear: both; }
+#errors
+#expected
+| 1 *
+| 0x000c000d
+#reset
+
+##
+## 0e - clip
+##
+
+#data
+* { clip: auto; }
+#errors
+#expected
+| 1 *
+| 0x0000000e
+#reset
+
+#data
+* { clip: rect(10px, auto, auto, 10px); }
+#errors
+#expected
+| 1 *
+| 0x02c02800 0x0000000a 0x00000000 0x00002800 0x00000000
+#reset
+
+#data
+* { clip: rect(auto, auto, auto, auto); }
+#errors
+#expected
+| 1 *
+| 0x03e0000e
+#reset
+
+#data
+* { clip: rect(1px, 2px, 3px, 4px); }
+#errors
+#expected
+| 1 *
+| 0x0200000e 0x00000400 0x00000000 0x00000800 0x00000000 0x00000c00 0x00000000 0x00001000 0x00000000
+#reset
+
+#data
+* { clip: rect(auto 1em 1em auto); }
+#errors
+#expected
+| 1 *
+| 0x0320000e 0x00000400 0x00000002 0x00000400 0x00000002
+#reset
+
+##
+## 0f - color
+##
+
+## more fully tested in colours.dat
+
+#data
+* { color: #BBC }
+#errors
+#expected
+| 1 *
+| 0x0200000f 0xbbbbcc00
+#reset