summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-27 10:07:43 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-04-27 10:17:57 (GMT)
commit37f8bbcef048c8274553b4f313f3aa222ce5c49d (patch)
tree1bab24415b68d1ca76af9bf8a300b4a07d7a3459
parentded51e3eec1f74a60185e7f2ecc3bcef8502b99a (diff)
downloadlibcss-37f8bbcef048c8274553b4f313f3aa222ce5c49d.tar.gz
libcss-37f8bbcef048c8274553b4f313f3aa222ce5c49d.tar.bz2
Tests: Add support for dumping the box-sizing property.
-rw-r--r--test/dump.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/dump.h b/test/dump.h
index fe53f69..872c850 100644
--- a/test/dump.h
+++ b/test/dump.h
@@ -478,6 +478,7 @@ static const char *opcode_names[] = {
"column-width",
"writing-mode",
"overflow-y",
+ "box-sizing",
};
static void dump_css_fixed(css_fixed f, char **ptr)
@@ -976,6 +977,16 @@ void dump_bytecode(css_style *style, char **ptr, uint32_t depth)
break;
}
break;
+ case CSS_PROP_BOX_SIZING:
+ switch (value) {
+ case BOX_SIZING_CONTENT_BOX:
+ *ptr += sprintf(*ptr, "content-box");
+ break;
+ case BOX_SIZING_BORDER_BOX:
+ *ptr += sprintf(*ptr, "border-box");
+ break;
+ }
+ break;
case CSS_PROP_BORDER_TOP_STYLE:
case CSS_PROP_BORDER_RIGHT_STYLE:
case CSS_PROP_BORDER_BOTTOM_STYLE: