Skip to content

Animation.rs: Iterate declared transition backwards #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

yezhizhen
Copy link
Contributor

Implement DoubleEndedIterator for TransitionPropertyIterator to iterate declared transition backwards:
Spec: "If a property is specified multiple times in the value of transition-property (either on its own, via a shorthand that contains it, or via the all value), then the transition that starts uses the duration, delay, and timing function at the index corresponding to the last item in the value of transition-property that calls for animating that property. "

Addresses Servo issue: servo #37164
Servo PR: servo/servo#37176

Rebase of #192

delan and others added 11 commits July 2, 2025 02:12
Any ancestors of this commit are from upstream mozilla-central, with
some filtering and renaming. Our patches and sync tooling start here.

The sync tooling has all been squashed into this commit, based on:
https://github.com/servo/stylo/commits/64731e10dc8ef87ef52aa2fb9f988c3b2530f3a7
This is a rebase of da53c54

Signed-off-by: Oriol Brufau <[email protected]>
Just reverting a previous fixup which is no longer needed:
bd707d7

Signed-off-by: Oriol Brufau <[email protected]>
This reverts commit 3580e11
to avoid duplicated crates, until we can coordinate the upgrade.
Signed-off-by: Oriol Brufau <[email protected]>
@mrobinson
Copy link
Member

@yezhizhen Thanks for posting this. Since this PR is much bigger than I expected and might take a while to review and ensure we can get it upstream, I've posted your original version as well here: #214. I didn't realize that it would be so much work to add reverse iteration support here, sorry. I don't want to block your work any longer than I already have, so my hope is we can land the less optimal version first and then land something like this later.

@yezhizhen
Copy link
Contributor Author

Thanks Martin :)

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.

4 participants