diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-08-21 09:45:13 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-08-21 09:45:13 +0000 |
commit | 5c20bde8b544d23fd024dad7ace9b46849336ebf (patch) | |
tree | 07dc508d51d281b7553e471a42ba3684018fe512 /test/dump_computed.h | |
parent | 5bd907c74151d0bbe1859c37cb2bde898ab72e2f (diff) | |
download | libcss-5c20bde8b544d23fd024dad7ace9b46849336ebf.tar.gz libcss-5c20bde8b544d23fd024dad7ace9b46849336ebf.tar.bz2 |
-libcss-align
svn path=/trunk/libcss/; revision=9378
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r-- | test/dump_computed.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index b3423d7..551830a 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -2247,5 +2247,31 @@ static void dump_computed_style(const css_computed_style *style, char *buf, } ptr += wrote; *len -= wrote; + + /* -libcss-align */ + val = css_computed_libcss_align(style); + switch (val) { + case CSS_LIBCSS_ALIGN_LEFT: + wrote = snprintf(ptr, *len, "-libcss-align: left\n"); + break; + case CSS_LIBCSS_ALIGN_RIGHT: + wrote = snprintf(ptr, *len, "-libcss-align: right\n"); + break; + case CSS_LIBCSS_ALIGN_CENTER: + wrote = snprintf(ptr, *len, "-libcss-align: center\n"); + break; + case CSS_LIBCSS_ALIGN_JUSTIFY: + wrote = snprintf(ptr, *len, "-libcss-align: justify\n"); + break; + case CSS_LIBCSS_ALIGN_DEFAULT: + wrote = snprintf(ptr, *len, "-libcss-align: default\n"); + break; + default: + wrote = 0; + break; + } + ptr += wrote; + *len -= wrote; + } |