Skip to content

Commit

Permalink
LibWeb: Allow color keywords in theme-color metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingeh committed Jan 10, 2025
1 parent 5fc74b3 commit 9b95c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/LibWeb/DOM/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Layout::NodeWithStyle const&> root_node;
if (html_element() && html_element()->layout_node())
root_node = *html_element()->layout_node();
Expand Down

0 comments on commit 9b95c3d

Please sign in to comment.