Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Respond to changes in animation-delay#371

Open
yezhizhen wants to merge 1 commit into
mainfrom
patch-delay
Open

Respond to changes in animation-delay#371
yezhizhen wants to merge 1 commit into
mainfrom
patch-delay

Conversation

@yezhizhen
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen commented May 19, 2026

update_from_other unconditionally restored the old started_at, ignoring the new delay.

To fix this, computed the correct started_at with the new delay.
We also compute the fresh new state based on it.

Servo companion: servo/servo#45013

@yezhizhen yezhizhen changed the title Respond to change in animation-delay Respond to changes in animation-delay May 19, 2026
@yezhizhen yezhizhen requested a review from xiaochengh May 19, 2026 15:33
@mrobinson
Copy link
Copy Markdown
Member

mrobinson commented May 20, 2026

@yezhizhen Do you mind writing a bit more about what this change does in the PR description? I think it is useful for people reading the repository history.

@yezhizhen yezhizhen marked this pull request as draft May 20, 2026 08:44
@yezhizhen
Copy link
Copy Markdown
Member Author

yezhizhen commented May 20, 2026

I made a mistake. This only works for static ones. We cannot use the new now, as that would teleport the running animation back to beginning with the new delay.

The new passing WPT are all static ones.

.
Signed-off-by: Euclid Ye <[email protected]>
@yezhizhen
Copy link
Copy Markdown
Member Author

yezhizhen commented May 20, 2026

Fixed. Now it works correctly on running ones.
Also get one more passing case:
/css/css-transitions/all-interpolates-same-as-explicit-property.html

Still recommend "Hide Whitespace diff"

@yezhizhen yezhizhen marked this pull request as ready for review May 20, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants