mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibHTML: Don't assert when encountering an unknown font-weight
This commit is contained in:
parent
6c22b46b37
commit
9ac7b6fad1
1 changed files with 4 additions and 2 deletions
|
@ -51,8 +51,10 @@ void StyleProperties::load_font() const
|
||||||
weight = "";
|
weight = "";
|
||||||
else if (font_weight == "bold")
|
else if (font_weight == "bold")
|
||||||
weight = "Bold";
|
weight = "Bold";
|
||||||
else
|
else {
|
||||||
ASSERT_NOT_REACHED();
|
dbg() << "Unknown font-weight: " << font_weight;
|
||||||
|
weight = "";
|
||||||
|
}
|
||||||
|
|
||||||
auto look_for_file = [](const StringView& expected_name) -> String {
|
auto look_for_file = [](const StringView& expected_name) -> String {
|
||||||
// TODO: handle font sizes properly?
|
// TODO: handle font sizes properly?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue