From b0f127aa2c6b166572999c3eda46e74c845aec19 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 21 Aug 2009 17:05:22 +0000 Subject: Support HTML alignment hints. svn path=/trunk/netsurf/; revision=9381 --- css/dump.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'css/dump.c') diff --git a/css/dump.c b/css/dump.c index 430471382..9b1080233 100644 --- a/css/dump.c +++ b/css/dump.c @@ -1688,6 +1688,28 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style) break; } + /* -libcss-align */ + val = css_computed_libcss_align(style); + switch (val) { + case CSS_LIBCSS_ALIGN_LEFT: + fprintf(stream, "-libcss-align: left "); + break; + case CSS_LIBCSS_ALIGN_RIGHT: + fprintf(stream, "-libcss-align: right "); + break; + case CSS_LIBCSS_ALIGN_CENTER: + fprintf(stream, "-libcss-align: center "); + break; + case CSS_LIBCSS_ALIGN_JUSTIFY: + fprintf(stream, "-libcss-align: justify "); + break; + case CSS_LIBCSS_ALIGN_DEFAULT: + fprintf(stream, "-libcss-align: default "); + break; + default: + break; + } + fprintf(stream, "}"); } -- cgit v1.2.3