diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-06 12:47:06 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-07 12:22:49 +0000 |
commit | 692a03f5545fbdf9d104f3bd585cec8bf3d7b8cd (patch) | |
tree | 45f863e56e166a58e95206294aadfda84edbc765 /test/dump_computed.h | |
parent | fa4d9a7560d7cf25affce86a51f6410430a4e63b (diff) | |
download | libcss-692a03f5545fbdf9d104f3bd585cec8bf3d7b8cd.tar.gz libcss-692a03f5545fbdf9d104f3bd585cec8bf3d7b8cd.tar.bz2 |
Add dumping of column-fill property to selection test rig. 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 e1519f0..530b617 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -843,6 +843,25 @@ static void dump_computed_style(const css_computed_style *style, char *buf, ptr += wrote; *len -= wrote; + /* column-fill */ + val = css_computed_column_fill(style); + switch (val) { + case CSS_COLUMN_FILL_INHERIT: + wrote = snprintf(ptr, *len, "column-fill: inherit\n"); + break; + case CSS_COLUMN_FILL_AUTO: + wrote = snprintf(ptr, *len, "column-fill: auto\n"); + break; + case CSS_COLUMN_FILL_BALANCE: + wrote = snprintf(ptr, *len, "column-fill: balance\n"); + break; + default: + wrote = 0; + break; + } + ptr += wrote; + *len -= wrote; + /* content */ val = css_computed_content(style, &content); switch (val) { |