summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/html/css-apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c
index 6d99c07d..a4fe01d7 100644
--- a/source/html/css-apply.c
+++ b/source/html/css-apply.c
@@ -4,7 +4,6 @@ static const char *inherit_list[] = {
"color",
"direction",
"font-family",
- "font-size",
"font-style",
"font-variant",
"font-weight",
@@ -665,7 +664,8 @@ value_from_property(fz_css_match *match, const char *name)
if (match->up)
{
if (value && !strcmp(value->data, "inherit"))
- return value_from_property(match->up, name);
+ if (strcmp(name, "font-size") != 0) /* never inherit 'font-size' textually */
+ return value_from_property(match->up, name);
if (!value && keyword_in_list(name, inherit_list, nelem(inherit_list)))
return value_from_property(match->up, name);
}