mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Parse oblique font-style
with an angle value
This commit is contained in:
parent
e537e426c1
commit
c0f9b11070
Notes:
github-actions[bot]
2025-05-03 10:06:24 +00:00
Author: https://github.com/tcl3
Commit: c0f9b11070
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4552
Reviewed-by: https://github.com/konradekk
13 changed files with 172 additions and 31 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue