mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Implement the transition-behavior CSS property
This specifies whether transitions should be started for transitions whose animation behavior is discrete.
This commit is contained in:
committed by
Sam Atkins
parent
e57e38dafc
commit
542c3cbe51
Notes:
github-actions[bot]
2025-05-02 10:08:20 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/542c3cbe513 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4508 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -18,6 +18,8 @@ String TransitionStyleValue::to_string(SerializationMode mode) const
|
||||
builder.append(", "sv);
|
||||
first = false;
|
||||
builder.appendff("{} {} {} {}", transition.property_name->to_string(mode), transition.duration, transition.easing->to_string(mode), transition.delay);
|
||||
if (transition.transition_behavior != TransitionBehavior::Normal)
|
||||
builder.appendff(" {}", CSS::to_string(transition.transition_behavior));
|
||||
}
|
||||
|
||||
return MUST(builder.to_string());
|
||||
|
||||
Reference in New Issue
Block a user