mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibHTML: Don't assert when encountering an unknown font-weight
This commit is contained in:
@@ -51,8 +51,10 @@ void StyleProperties::load_font() const
|
||||
weight = "";
|
||||
else if (font_weight == "bold")
|
||||
weight = "Bold";
|
||||
else
|
||||
ASSERT_NOT_REACHED();
|
||||
else {
|
||||
dbg() << "Unknown font-weight: " << font_weight;
|
||||
weight = "";
|
||||
}
|
||||
|
||||
auto look_for_file = [](const StringView& expected_name) -> String {
|
||||
// TODO: handle font sizes properly?
|
||||
|
||||
Reference in New Issue
Block a user