From 93699403812c87a8d96d0029f37134cf86e86205 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 2 Feb 2016 00:26:01 +0100 Subject: html: Support vertical alignment to top/bottom of parent box Fixes http://bugs.ghostscript.com/show_bug.cgi?id=696004 --- source/html/css-apply.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/html/css-apply.c') diff --git a/source/html/css-apply.c b/source/html/css-apply.c index db588bf7..a6c531b0 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -1177,6 +1177,8 @@ fz_apply_css_style(fz_context *ctx, fz_html_font_set *set, fz_css_style *style, else if (!strcmp(value->data, "super")) style->vertical_align = VA_SUPER; else if (!strcmp(value->data, "top")) style->vertical_align = VA_TOP; else if (!strcmp(value->data, "bottom")) style->vertical_align = VA_BOTTOM; + else if (!strcmp(value->data, "text-top")) style->vertical_align = VA_TEXT_TOP; + else if (!strcmp(value->data, "text-bottom")) style->vertical_align = VA_TEXT_BOTTOM; } value = value_from_property(match, "font-size"); -- cgit v1.2.3