summaryrefslogtreecommitdiff
path: root/test/dump_computed.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-12-06 15:36:22 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-12-06 16:45:46 +0000
commitbc3b3725b51f894ad4fe736f250c917b586beada (patch)
tree680543b60944c8b9c06a3ac3a5843c75baca32a8 /test/dump_computed.h
parent67f46d5236f378027eca06486251a69a3969dc98 (diff)
downloadlibcss-bc3b3725b51f894ad4fe736f250c917b586beada.tar.gz
libcss-bc3b3725b51f894ad4fe736f250c917b586beada.tar.bz2
Add column-width to computed style dumping, and update test data.
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r--test/dump_computed.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h
index f45e6c5..a4c0b89 100644
--- a/test/dump_computed.h
+++ b/test/dump_computed.h
@@ -1001,6 +1001,33 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
ptr += wrote;
*len -= wrote;
+ /* column-width */
+ val = css_computed_column_width(style, &len1, &unit1);
+ switch (val) {
+ case CSS_COLUMN_WIDTH_INHERIT:
+ wrote = snprintf(ptr, *len, "column-width: inherit\n");
+ break;
+ case CSS_COLUMN_WIDTH_AUTO:
+ wrote = snprintf(ptr, *len, "column-width: auto\n");
+ break;
+ case CSS_COLUMN_WIDTH_SET:
+ wrote = snprintf(ptr, *len, "column-width: ");
+ ptr += wrote;
+ *len -= wrote;
+
+ wrote = dump_css_unit(len1, unit1, ptr, *len);
+ ptr += wrote;
+ *len -= wrote;
+
+ wrote = snprintf(ptr, *len, "\n");
+ break;
+ default:
+ wrote = 0;
+ break;
+ }
+ ptr += wrote;
+ *len -= wrote;
+
/* content */
val = css_computed_content(style, &content);
switch (val) {