LibWeb: Parse oblique font-style with an angle value

This commit is contained in:
Tim Ledbetter 2025-05-02 13:55:58 +01:00 committed by Andreas Kling
commit c0f9b11070
Notes: github-actions[bot] 2025-05-03 10:06:24 +00:00
13 changed files with 172 additions and 31 deletions

View file

@ -233,8 +233,9 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
builder.append(' ');
builder.append(string);
};
if (font_style->to_keyword() != Keyword::Normal && font_style->to_keyword() != Keyword::Initial)
append(font_style->to_string(mode));
auto font_style_string = font_style->to_string(mode);
if (font_style_string != "normal"sv)
append(font_style_string);
if (font_variant_string != "normal"sv && font_variant_string != "initial"sv)
append(font_variant_string);
if (font_weight->to_font_weight() != Gfx::FontWeight::Regular && font_weight->to_keyword() != Keyword::Initial)