mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-24 12:02:51 +00:00
LibWeb: Allow multiple values for the transition-duration
property
This commit is contained in:
parent
1ca9f2a44d
commit
64577ad704
Notes:
github-actions[bot]
2025-04-23 20:03:59 +00:00
Author: https://github.com/tcl3
Commit: 64577ad704
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4387
Reviewed-by: https://github.com/AtkinsSJ ✅
12 changed files with 331 additions and 327 deletions
|
@ -674,6 +674,10 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
|
|||
if (auto parsed_value = parse_list_of_time_values(property_id, tokens); parsed_value && !tokens.has_next_token())
|
||||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
case PropertyID::TransitionDuration:
|
||||
if (auto parsed_value = parse_list_of_time_values(property_id, tokens); parsed_value && !tokens.has_next_token())
|
||||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
case PropertyID::TransitionProperty:
|
||||
if (auto parsed_value = parse_transition_property_value(tokens); parsed_value && !tokens.has_next_token())
|
||||
return parsed_value.release_nonnull();
|
||||
|
@ -3807,6 +3811,7 @@ RefPtr<CSSStyleValue const> Parser::parse_list_of_time_values(PropertyID propert
|
|||
transaction.commit();
|
||||
return StyleValueList::create(move(time_value_list), StyleValueList::Separator::Comma);
|
||||
}
|
||||
|
||||
RefPtr<CSSStyleValue const> Parser::parse_transition_property_value(TokenStream<ComponentValue>& tokens)
|
||||
{
|
||||
// https://drafts.csswg.org/css-transitions/#transition-property-property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue