summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-02-02 00:26:01 +0100
committerSebastian Rasmussen <sebras@gmail.com>2016-02-10 01:12:32 +0100
commit93699403812c87a8d96d0029f37134cf86e86205 (patch)
tree21a541ccca78da25e8620eec0500315db392de73 /source/html/css-apply.c
parentf17c1a2a06eb04daabd381e7e9f374c3f76e77fa (diff)
downloadmupdf-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.c2
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");