mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Allow color keywords in theme-color metadata
This commit is contained in:
parent
9f2ce259ad
commit
403cda5cd6
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user