summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-27 10:22:15 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-04-27 10:22:15 (GMT)
commit24f23765517bd02445835dd543a07b1a883ca316 (patch)
treecfb409a55453104e25058513dafddf37979a0b86
parent37f8bbcef048c8274553b4f313f3aa222ce5c49d (diff)
downloadlibcss-24f23765517bd02445835dd543a07b1a883ca316.tar.gz
libcss-24f23765517bd02445835dd543a07b1a883ca316.tar.bz2
Tests: Add parser tests for box-sizing.
-rw-r--r--test/data/parse2/tests1.dat33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/data/parse2/tests1.dat b/test/data/parse2/tests1.dat
index 40d1ab6..30afea8 100644
--- a/test/data/parse2/tests1.dat
+++ b/test/data/parse2/tests1.dat
@@ -148,3 +148,36 @@
| cursor: url('foo.png'), url('bar.gif'), pointer
#reset
+#data
+* { box-sizing: border-box; }
+#errors
+#expected
+| *
+| box-sizing: border-box
+#reset
+
+#data
+* { box-sizing: content-box; }
+#errors
+#expected
+| *
+| box-sizing: content-box
+#reset
+
+#data
+* { box-sizing: inherit; }
+#errors
+#expected
+| *
+| box-sizing: inherit
+#reset
+
+#data
+* { box-sizing: border-box; max-width: 2em }
+#errors
+#expected
+| *
+| box-sizing: border-box
+| max-width: 2em
+#reset
+