Przeglądaj źródła

LibWeb: Don't panic on unsupported text-decoration-line values

Instead, just log a FIXME message and move on.
Andreas Kling 2 lat temu
rodzic
commit
767d632ab7

+ 2 - 1
Userland/Libraries/LibWeb/CSS/StyleProperties.cpp

@@ -608,7 +608,8 @@ Vector<CSS::TextDecorationLine> StyleProperties::text_decoration_line() const
     if (value->is_identifier() && value->to_identifier() == ValueID::None)
     if (value->is_identifier() && value->to_identifier() == ValueID::None)
         return {};
         return {};
 
 
-    VERIFY_NOT_REACHED();
+    dbgln("FIXME: Unsupported value for text-decoration-line: {}", value->to_string());
+    return {};
 }
 }
 
 
 Optional<CSS::TextDecorationStyle> StyleProperties::text_decoration_style() const
 Optional<CSS::TextDecorationStyle> StyleProperties::text_decoration_style() const