From 9b95c3d6eb4c5738872ed3e9a62332ef4d1c3239 Mon Sep 17 00:00:00 2001 From: Gingeh <39150378+Gingeh@users.noreply.github.com> Date: Sat, 11 Jan 2025 09:49:09 +1100 Subject: [PATCH] LibWeb: Allow color keywords in theme-color metadata --- Libraries/LibWeb/DOM/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index 484b89d78600..1ad459daa8df 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -1511,7 +1511,7 @@ void Document::obtain_theme_color() auto css_value = parse_css_value(context, value, CSS::PropertyID::Color); // 4. If color is not failure, then return color. - if (!css_value.is_null() && css_value->is_color()) { + if (!css_value.is_null() && css_value->has_color()) { Optional root_node; if (html_element() && html_element()->layout_node()) root_node = *html_element()->layout_node();