diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index 2f5fcad50d8..970db3ff3be 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -1512,7 +1512,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();