mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00: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:
parent
4fd57f90b3
commit
030e6d7c9b
Notes:
github-actions[bot]
2025-09-24 11:00:13 +00:00
Author: https://github.com/Calme1709
Commit: 030e6d7c9b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6267
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/tcl3 ✅
19 changed files with 58 additions and 51 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue