summaryrefslogtreecommitdiff
path: root/test/dump_computed.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-09-10 17:51:37 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-09-10 17:51:37 +0100
commita27846b490a4a907872a62e568c412e6d1fc96b6 (patch)
tree0fd52d2bc8662cdcec01b49f41af08a96972524f /test/dump_computed.h
parent72a98c0dd6dfad592a4ec9883d4071b55e87f811 (diff)
downloadlibcss-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.h22
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) {