diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-12-06 13:19:58 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-12-06 16:45:27 +0000 |
commit | 2bbbe9050fb449276e6230ce0c2b0353d04b587c (patch) | |
tree | 9dd2d9ea3d085db1441433070cc913c37c74c8c4 /test/dump_computed.h | |
parent | c7d629a54b94454f470885f0bd1a0769907e067b (diff) | |
download | libcss-2bbbe9050fb449276e6230ce0c2b0353d04b587c.tar.gz |
Add column-span to computed style dump and update test data.
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r-- | test/dump_computed.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index 621b097..f45e6c5 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -982,6 +982,25 @@ static void dump_computed_style(const css_computed_style *style, char *buf, ptr += wrote; *len -= wrote; + /* column-span */ + val = css_computed_column_span(style); + switch (val) { + case CSS_COLUMN_SPAN_INHERIT: + wrote = snprintf(ptr, *len, "column-span: inherit\n"); + break; + case CSS_COLUMN_SPAN_NONE: + wrote = snprintf(ptr, *len, "column-span: none\n"); + break; + case CSS_COLUMN_SPAN_ALL: + wrote = snprintf(ptr, *len, "column-span: all\n"); + break; + default: + wrote = 0; + break; + } + ptr += wrote; + *len -= wrote; + /* content */ val = css_computed_content(style, &content); switch (val) { |