summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/CSS
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-17 23:54:00 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-17 23:54:19 +0200
commit9ac7b6fad1e02423f178ee1ee7074a08817769fb (patch)
tree53bcaac7e4154b85b13ce9bd9b9d9880a93e1555 /Libraries/LibHTML/CSS
parent6c22b46b37c271deb6cd7989c6949efcca2f8a13 (diff)
downloadserenity-9ac7b6fad1e02423f178ee1ee7074a08817769fb.zip
LibHTML: Don't assert when encountering an unknown font-weight
Diffstat (limited to 'Libraries/LibHTML/CSS')
-rw-r--r--Libraries/LibHTML/CSS/StyleProperties.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibHTML/CSS/StyleProperties.cpp b/Libraries/LibHTML/CSS/StyleProperties.cpp
index ff3528f7d7..2ad7ef1447 100644
--- a/Libraries/LibHTML/CSS/StyleProperties.cpp
+++ b/Libraries/LibHTML/CSS/StyleProperties.cpp
@@ -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?