LibWeb: Allow color keywords in theme-color metadata

This commit is contained in:
Gingeh 2025-01-11 09:49:09 +11:00 committed by Tim Ledbetter
parent 9f2ce259ad
commit 403cda5cd6
Notes: github-actions[bot] 2025-01-12 19:48:01 +00:00

View file

@ -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<Layout::NodeWithStyle const&> root_node;
if (html_element() && html_element()->layout_node())
root_node = *html_element()->layout_node();