From bd33bfd120e3d27177887cbd9af52515a0def418 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 12 Jun 2020 14:15:55 +0200 Subject: [PATCH] LibWeb: Whine about unrecognized CSS properties in debug log --- Libraries/LibWeb/Parser/CSSParser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibWeb/Parser/CSSParser.cpp b/Libraries/LibWeb/Parser/CSSParser.cpp index 9759173f874..18f7bc52644 100644 --- a/Libraries/LibWeb/Parser/CSSParser.cpp +++ b/Libraries/LibWeb/Parser/CSSParser.cpp @@ -759,6 +759,9 @@ public: consume_specific(';'); auto property_id = CSS::property_id_from_string(property_name); + if (property_id == CSS::PropertyID::Invalid) { + dbg() << "CSSParser: Unrecognized property '" << property_name << "'"; + } return StyleProperty { property_id, parse_css_value(property_value), important }; }