mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Fail the parsing of an invalid HSL legacy syntax
This commit is contained in:
parent
56441fe3e6
commit
fac3ea77d8
|
|
@ -2861,6 +2861,9 @@ RefPtr<CSSStyleValue> Parser::parse_hsl_color_value(TokenStream<ComponentValue>&
|
|||
inner_tokens.discard_whitespace();
|
||||
|
||||
alpha = parse_number_percentage_value(inner_tokens);
|
||||
// The parser has consumed a comma, so the alpha value is now required
|
||||
if (!alpha)
|
||||
return {};
|
||||
inner_tokens.discard_whitespace();
|
||||
|
||||
if (inner_tokens.has_next_token())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user