diff --git a/css/css.c b/css/css.c index 91d0a061f..58eaa662c 100644 --- a/css/css.c +++ b/css/css.c @@ -40,11 +40,11 @@ const struct css_style css_base_style = { 0x000000, CSS_DISPLAY_BLOCK, CSS_FLOAT_NONE, - { CSS_FONT_SIZE_LENGTH, { { 12, CSS_UNIT_PT } } }, + { CSS_FONT_SIZE_LENGTH, { { 10, CSS_UNIT_PT } } }, CSS_FONT_WEIGHT_NORMAL, CSS_FONT_STYLE_NORMAL, { CSS_HEIGHT_AUTO, { 1, CSS_UNIT_EM } }, - { CSS_LINE_HEIGHT_ABSOLUTE, { 1.2 } }, + { CSS_LINE_HEIGHT_ABSOLUTE, { 1.3 } }, CSS_TEXT_ALIGN_LEFT, { CSS_WIDTH_AUTO, { { 1, CSS_UNIT_EM } } } }; @@ -59,7 +59,7 @@ const struct css_style css_empty_style = { CSS_FONT_WEIGHT_INHERIT, CSS_FONT_STYLE_INHERIT, { CSS_HEIGHT_INHERIT, { 1, CSS_UNIT_EM } }, - { CSS_LINE_HEIGHT_INHERIT, { 1.2 } }, + { CSS_LINE_HEIGHT_INHERIT, { 1.3 } }, CSS_TEXT_ALIGN_INHERIT, { CSS_WIDTH_INHERIT, { { 1, CSS_UNIT_EM } } } }; @@ -74,7 +74,7 @@ const struct css_style css_blank_style = { CSS_FONT_WEIGHT_INHERIT, CSS_FONT_STYLE_INHERIT, { CSS_HEIGHT_AUTO, { 1, CSS_UNIT_EM } }, - { CSS_LINE_HEIGHT_INHERIT, { 1.2 } }, + { CSS_LINE_HEIGHT_INHERIT, { 1.3 } }, CSS_TEXT_ALIGN_INHERIT, { CSS_WIDTH_AUTO, { { 1, CSS_UNIT_EM } } } }; diff --git a/css/ruleset.c b/css/ruleset.c index 3cdfc56cf..62533fcc6 100644 --- a/css/ruleset.c +++ b/css/ruleset.c @@ -351,7 +351,7 @@ void parse_font_size(struct css_style * const s, const struct node * const v) if (fs != 0) { s->font_size.size = CSS_FONT_SIZE_LENGTH; s->font_size.value.length.unit = CSS_UNIT_PT; - s->font_size.value.length.value = fs->size * 12; + s->font_size.value.length.value = fs->size * 10; } else if (strcasecmp(v->data, "larger") == 0) { s->font_size.size = CSS_FONT_SIZE_PERCENT; s->font_size.value.percent = SIZE_FACTOR * 100;