mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb/CSS: Allow none
values in the color()
function
This commit is contained in:
parent
e7ef8da7f3
commit
dd283768a8
Notes:
github-actions[bot]
2024-12-11 22:39:16 +00:00
Author: https://github.com/LucasChollet Commit: https://github.com/LadybirdBrowser/ladybird/commit/dd283768a86 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2862 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 3 additions and 3 deletions
|
@ -3458,17 +3458,17 @@ RefPtr<CSSStyleValue> Parser::parse_color_function(TokenStream<ComponentValue>&
|
|||
|
||||
auto const& color_space = maybe_color_space.token().ident();
|
||||
|
||||
auto c1 = parse_number_percentage_value(inner_tokens);
|
||||
auto c1 = parse_number_percentage_none_value(inner_tokens);
|
||||
if (!c1)
|
||||
return {};
|
||||
inner_tokens.discard_whitespace();
|
||||
|
||||
auto c2 = parse_number_percentage_value(inner_tokens);
|
||||
auto c2 = parse_number_percentage_none_value(inner_tokens);
|
||||
if (!c2)
|
||||
return {};
|
||||
inner_tokens.discard_whitespace();
|
||||
|
||||
auto c3 = parse_number_percentage_value(inner_tokens);
|
||||
auto c3 = parse_number_percentage_none_value(inner_tokens);
|
||||
if (!c3)
|
||||
return {};
|
||||
inner_tokens.discard_whitespace();
|
||||
|
|
Loading…
Add table
Reference in a new issue