LibWeb: Parse animation-* properties as comma separated lists

We are yet to actually support having more than one value but this gets
us closer and gains us some WPT tests in the process.
This commit is contained in:
Callum Law 2025-09-16 16:54:54 +12:00 committed by Tim Ledbetter
commit 030e6d7c9b
Notes: github-actions[bot] 2025-09-24 11:00:13 +00:00
19 changed files with 58 additions and 51 deletions

View file

@ -450,6 +450,18 @@ Parser::ParseErrorOr<NonnullRefPtr<StyleValue const>> Parser::parse_css_value(Pr
if (auto parsed_value = parse_aspect_ratio_value(tokens); parsed_value && !tokens.has_next_token())
return parsed_value.release_nonnull();
return ParseError::SyntaxError;
case PropertyID::AnimationComposition:
case PropertyID::AnimationDelay:
case PropertyID::AnimationDirection:
case PropertyID::AnimationDuration:
case PropertyID::AnimationFillMode:
case PropertyID::AnimationIterationCount:
case PropertyID::AnimationName:
case PropertyID::AnimationPlayState:
case PropertyID::AnimationTimingFunction:
if (auto parsed_value = parse_simple_comma_separated_value_list(property_id, tokens); parsed_value && !tokens.has_next_token())
return parsed_value.release_nonnull();
return ParseError::SyntaxError;
case PropertyID::BackdropFilter:
case PropertyID::Filter:
if (auto parsed_value = parse_filter_value_list_value(tokens); parsed_value && !tokens.has_next_token())