diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-06 15:38:34 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-07 12:24:40 +0000 |
commit | 9a2ff99021a4872bf3aaa15d3b4e293442c196b1 (patch) | |
tree | d3eb6cbd0aec5347494bc855da204bfd3e3ef826 /test/dump_computed.h | |
parent | f536ddb7ad859cc95c96b733a96a83774333d321 (diff) | |
download | libcss-9a2ff99021a4872bf3aaa15d3b4e293442c196b1.tar.gz libcss-9a2ff99021a4872bf3aaa15d3b4e293442c196b1.tar.bz2 |
Add column-gap dumping to test rig, and update test data.
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r-- | test/dump_computed.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index 530b617..ace7fda 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -862,6 +862,33 @@ static void dump_computed_style(const css_computed_style *style, char *buf, ptr += wrote; *len -= wrote; + /* column-gap */ + val = css_computed_column_gap(style, &len1, &unit1); + switch (val) { + case CSS_COLUMN_GAP_INHERIT: + wrote = snprintf(ptr, *len, "column-gap: inherit\n"); + break; + case CSS_COLUMN_GAP_NORMAL: + wrote = snprintf(ptr, *len, "column-gap: normal\n"); + break; + case CSS_COLUMN_GAP_SET: + wrote = snprintf(ptr, *len, "column-gap: "); + 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) { |