summaryrefslogtreecommitdiff
path: root/test/data/parse2/margin.dat
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-06-27 10:03:12 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-06-27 10:03:12 +0000
commit3fd462ecc01731f1b8e69a33ca4759b14a1bd851 (patch)
tree90c1841842949417bf5fcfc79b9546a9250de670 /test/data/parse2/margin.dat
parente3c190af648b4a9c777406562c86f82cba531927 (diff)
downloadlibcss-3fd462ecc01731f1b8e69a33ca4759b14a1bd851.tar.gz
libcss-3fd462ecc01731f1b8e69a33ca4759b14a1bd851.tar.bz2
Move old shorthands test into margin test. Add a few general tests.
svn path=/trunk/libcss/; revision=8047
Diffstat (limited to 'test/data/parse2/margin.dat')
-rw-r--r--test/data/parse2/margin.dat62
1 files changed, 62 insertions, 0 deletions
diff --git a/test/data/parse2/margin.dat b/test/data/parse2/margin.dat
index f4b3754..287eb62 100644
--- a/test/data/parse2/margin.dat
+++ b/test/data/parse2/margin.dat
@@ -1,4 +1,66 @@
#data
+* { margin: 0 0 0 0; }
+#errors
+#expected
+| *
+| margin-top: 0px
+| margin-right: 0px
+| margin-bottom: 0px
+| margin-left: 0px
+#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
+
+#data
* { margin: auto; }
#errors
#expected