diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-16 12:08:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-16 13:31:20 +0000 |
commit | 34fc236550a686d947458a2ce7f9a081b2b6d22c (patch) | |
tree | ffbea61dc0fc04982713b63caad67db94a892035 /test/dump_computed.h | |
parent | b353e6a7935dec696eaac463132005f2c4e6f67f (diff) | |
download | libcss-34fc236550a686d947458a2ce7f9a081b2b6d22c.tar.gz libcss-34fc236550a686d947458a2ce7f9a081b2b6d22c.tar.bz2 |
Add column-rule-style to computed style dumper, and update unit tests.
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r-- | test/dump_computed.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index 3da4617..00e9a10 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -906,6 +906,49 @@ static void dump_computed_style(const css_computed_style *style, char *buf, ptr += wrote; *len -= wrote; + /* column-rule-style */ + val = css_computed_column_rule_style(style); + switch (val) { + case CSS_COLUMN_RULE_STYLE_INHERIT: + wrote = snprintf(ptr, *len, "column-rule-style: inherit\n"); + break; + case CSS_COLUMN_RULE_STYLE_NONE: + wrote = snprintf(ptr, *len, "column-rule-style: none\n"); + break; + case CSS_COLUMN_RULE_STYLE_HIDDEN: + wrote = snprintf(ptr, *len, "column-rule-style: hidden\n"); + break; + case CSS_COLUMN_RULE_STYLE_DOTTED: + wrote = snprintf(ptr, *len, "column-rule-style: dotted\n"); + break; + case CSS_COLUMN_RULE_STYLE_DASHED: + wrote = snprintf(ptr, *len, "column-rule-style: dashed\n"); + break; + case CSS_COLUMN_RULE_STYLE_SOLID: + wrote = snprintf(ptr, *len, "column-rule-style: solid\n"); + break; + case CSS_COLUMN_RULE_STYLE_DOUBLE: + wrote = snprintf(ptr, *len, "column-rule-style: double\n"); + break; + case CSS_COLUMN_RULE_STYLE_GROOVE: + wrote = snprintf(ptr, *len, "column-rule-style: groove\n"); + break; + case CSS_COLUMN_RULE_STYLE_RIDGE: + wrote = snprintf(ptr, *len, "column-rule-style: ridge\n"); + break; + case CSS_COLUMN_RULE_STYLE_INSET: + wrote = snprintf(ptr, *len, "column-rule-style: inset\n"); + break; + case CSS_COLUMN_RULE_STYLE_OUTSET: + wrote = snprintf(ptr, *len, "column-rule-style: outset\n"); + break; + default: + wrote = 0; + break; + } + ptr += wrote; + *len -= wrote; + /* content */ val = css_computed_content(style, &content); switch (val) { |