diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-02-02 00:26:01 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-02-10 01:12:32 +0100 |
commit | 93699403812c87a8d96d0029f37134cf86e86205 (patch) | |
tree | 21a541ccca78da25e8620eec0500315db392de73 /source/html/css-apply.c | |
parent | f17c1a2a06eb04daabd381e7e9f374c3f76e77fa (diff) | |
download | mupdf-93699403812c87a8d96d0029f37134cf86e86205.tar.xz |
html: Support vertical alignment to top/bottom of parent box
Fixes http://bugs.ghostscript.com/show_bug.cgi?id=696004
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r-- | source/html/css-apply.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |