mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Tim Ledbetter
parent
4fd57f90b3
commit
030e6d7c9b
Notes:
github-actions[bot]
2025-09-24 11:00:13 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/030e6d7c9b8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6267 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/tcl3 ✅
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user