summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-24 20:13:07 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-01-24 20:13:07 +0000
commita2977c8d2a66ea237e8bcb4a8e2c8fa463ac05cd (patch)
tree64a3731c300d2f65b60fa10959bbb221de2eb3a7 /test/data
parent3bc484ff6b925989d3dbf3931e2d72447dcbca22 (diff)
downloadlibcss-a2977c8d2a66ea237e8bcb4a8e2c8fa463ac05cd.tar.gz
libcss-a2977c8d2a66ea237e8bcb4a8e2c8fa463ac05cd.tar.bz2
Test cases for margin shorthand property.
svn path=/trunk/libcss/; revision=6253
Diffstat (limited to 'test/data')
-rw-r--r--test/data/parse2/shorthands.dat61
1 files changed, 61 insertions, 0 deletions
diff --git a/test/data/parse2/shorthands.dat b/test/data/parse2/shorthands.dat
new file mode 100644
index 0000000..0705f13
--- /dev/null
+++ b/test/data/parse2/shorthands.dat
@@ -0,0 +1,61 @@
+#data
+* { margin: 0 0 0 0; }
+#errors
+#expected
+| *
+| margin-top: 0
+| margin-right: 0
+| margin-bottom: 0
+| margin-left: 0
+#reset
+
+#data
+* { margin: 2em; }
+#errors
+#expected
+| *
+| margin-top: 2em
+| margin-right: 2em
+| margin-bottom: 2em
+| margin-left: 2em
+#reset
+
+#data
+* { margin: 2em auto; }
+#errors
+#expected
+| *
+| margin-top: 2em
+| margin-right: auto
+| margin-bottom: 2em
+| margin-left: auto
+#reset
+
+#data
+* { margin: 10% 5px -4em -50%; }
+#errors
+#expected
+| *
+| margin-top: 10%
+| margin-right: 5px
+| margin-bottom: -4em
+| margin-left: -50%
+#reset
+
+#data
+* { margin: 10% 5px -4em; }
+#errors
+#expected
+| *
+| margin-top: 10%
+| margin-right: 5px
+| margin-bottom: -4em
+| margin-left: 5px
+#reset
+
+#data
+* { margin: 10% 5px "Hello!" -4em; }
+#errors
+#expected
+| *
+#reset \ No newline at end of file