diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-10 17:51:37 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-10 17:51:37 +0100 |
commit | a27846b490a4a907872a62e568c412e6d1fc96b6 (patch) | |
tree | 0fd52d2bc8662cdcec01b49f41af08a96972524f /test/dump_computed.h | |
parent | 72a98c0dd6dfad592a4ec9883d4071b55e87f811 (diff) | |
download | libcss-a27846b490a4a907872a62e568c412e6d1fc96b6.tar.gz libcss-a27846b490a4a907872a62e568c412e6d1fc96b6.tar.bz2 |
Update test dumpers to output writing-mode.
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r-- | test/dump_computed.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index 6a29c2d..451ba1a 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -2472,6 +2472,28 @@ static void dump_computed_style(const css_computed_style *style, char *buf, ptr += wrote; *len -= wrote; + /* writing-mode */ + val = css_computed_writing_mode(style); + switch (val) { + case CSS_WRITING_MODE_INHERIT: + wrote = snprintf(ptr, *len, "writing-mode: inherit\n"); + break; + case CSS_WRITING_MODE_HORIZONTAL_TB: + wrote = snprintf(ptr, *len, "writing-mode: horizontal-tb\n"); + break; + case CSS_WRITING_MODE_VERTICAL_RL: + wrote = snprintf(ptr, *len, "writing-mode: vertical-rl\n"); + break; + case CSS_WRITING_MODE_VERTICAL_LR: + wrote = snprintf(ptr, *len, "writing-mode: vertical-lr\n"); + break; + default: + wrote = 0; + break; + } + ptr += wrote; + *len -= wrote; + /* z-index */ val = css_computed_z_index(style, &zindex); switch (val) { |