mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Allow color keywords in theme-color metadata
This commit is contained in:
parent
9f2ce259ad
commit
403cda5cd6
Notes:
github-actions[bot]
2025-01-12 19:48:01 +00:00
Author: https://github.com/Gingeh Commit: https://github.com/LadybirdBrowser/ladybird/commit/403cda5cd64 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3207 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue