diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp index 85122b33930..276effe1c3d 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp @@ -389,12 +389,7 @@ int StyleValue::to_font_weight() const } } if (has_integer()) { - int font_weight_integer = to_integer(); - if (font_weight_integer <= Gfx::FontWeight::Regular) - return Gfx::FontWeight::Regular; - if (font_weight_integer <= Gfx::FontWeight::Bold) - return Gfx::FontWeight::Bold; - return Gfx::FontWeight::Black; + return to_integer(); } if (is_calculated()) { auto maybe_weight = const_cast(as_calculated()).resolve_integer();