summaryrefslogtreecommitdiff
path: root/test/data/parse2
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-06-27 08:56:38 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-06-27 08:56:38 +0000
commit2c0545c84b280328e15d87de1bf8023e92a8affe (patch)
tree2a4eb6c16ba7d6b8bc383529c5fffb9fe823a95b /test/data/parse2
parent1b4818d1efcba37ec4563213c79ae408bda5b6ad (diff)
downloadlibcss-2c0545c84b280328e15d87de1bf8023e92a8affe.tar.gz
libcss-2c0545c84b280328e15d87de1bf8023e92a8affe.tar.bz2
Tests for padding property.
svn path=/trunk/libcss/; revision=8044
Diffstat (limited to 'test/data/parse2')
-rw-r--r--test/data/parse2/INDEX3
-rw-r--r--test/data/parse2/padding.dat203
2 files changed, 205 insertions, 1 deletions
diff --git a/test/data/parse2/INDEX b/test/data/parse2/INDEX
index a723528..41d9180 100644
--- a/test/data/parse2/INDEX
+++ b/test/data/parse2/INDEX
@@ -11,4 +11,5 @@ malformed-declarations.dat Malformed declaration tests
unknown-properties.dat Unknown property tests
bgpos.dat Illegal background-position values
bg.dat Background property tests
-margin.dat Margin property tests \ No newline at end of file
+margin.dat Margin property tests
+padding.dat Padding property tests \ No newline at end of file
diff --git a/test/data/parse2/padding.dat b/test/data/parse2/padding.dat
new file mode 100644
index 0000000..d847080
--- /dev/null
+++ b/test/data/parse2/padding.dat
@@ -0,0 +1,203 @@
+#data
+* { padding: 10px; }
+#errors
+#expected
+| *
+| padding-top: 10px
+| padding-right: 10px
+| padding-bottom: 10px
+| padding-left: 10px
+#reset
+
+#data
+* { padding: 10px 20px; }
+#errors
+#expected
+| *
+| padding-top: 10px
+| padding-right: 20px
+| padding-bottom: 10px
+| padding-left: 20px
+#reset
+
+#data
+* { padding: 10px 20px 30px; }
+#errors
+#expected
+| *
+| padding-top: 10px
+| padding-right: 20px
+| padding-bottom: 30px
+| padding-left: 20px
+#reset
+
+#data
+* { padding: 10px 20px 30px 40px; }
+#errors
+#expected
+| *
+| padding-top: 10px
+| padding-right: 20px
+| padding-bottom: 30px
+| padding-left: 40px
+#reset
+
+#data
+* { padding: inherit; }
+#errors
+#expected
+| *
+| padding-top: inherit
+| padding-right: inherit
+| padding-bottom: inherit
+| padding-left: inherit
+#reset
+
+#data
+* { padding: 20px inherit; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { padding: inherit 20px; }
+#errors
+#expected
+| *
+#reset
+
+
+#data
+* { padding: 10px !important; }
+#errors
+#expected
+| *
+| padding-top: 10px !important
+| padding-right: 10px !important
+| padding-bottom: 10px !important
+| padding-left: 10px !important
+#reset
+
+#data
+* { padding: 10px 20px !important; }
+#errors
+#expected
+| *
+| padding-top: 10px !important
+| padding-right: 20px !important
+| padding-bottom: 10px !important
+| padding-left: 20px !important
+#reset
+
+#data
+* { padding: 10px 20px 30px !important; }
+#errors
+#expected
+| *
+| padding-top: 10px !important
+| padding-right: 20px !important
+| padding-bottom: 30px !important
+| padding-left: 20px !important
+#reset
+
+#data
+* { padding: 10px 20px 30px 40px !important; }
+#errors
+#expected
+| *
+| padding-top: 10px !important
+| padding-right: 20px !important
+| padding-bottom: 30px !important
+| padding-left: 40px !important
+#reset
+
+#data
+* { padding: inherit !important; }
+#errors
+#expected
+| *
+| padding-top: inherit !important
+| padding-right: inherit !important
+| padding-bottom: inherit !important
+| padding-left: inherit !important
+#reset
+
+#data
+* { padding: 20px inherit !important; }
+#errors
+#expected
+| *
+#reset
+
+
+#data
+* { padding: invalid; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { padding: ; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { padding: 20deg; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { padding:}
+#errors
+#expected
+| *
+#reset
+
+
+
+#data
+* { padding-top: inherit;}
+#errors
+#expected
+| *
+| padding-top: inherit
+#reset
+
+#data
+* { padding-right: inherit;}
+#errors
+#expected
+| *
+| padding-right: inherit
+#reset
+
+#data
+* { padding-bottom: inherit;}
+#errors
+#expected
+| *
+| padding-bottom: inherit
+#reset
+
+#data
+* { padding-bottom: 2em inherit;}
+#errors
+#expected
+| *
+#reset
+
+#data
+* { padding-left: inherit;}
+#errors
+#expected
+| *
+| padding-left: inherit
+#reset
+
+