Skip to content
New issue

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

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

Already on GitHub? # to your account

[scroll-animations-1][web-animations-2] getAnimations should return scroll animations which haven't ticked yet. #8053

Closed
flackr opened this issue Nov 9, 2022 · 0 comments · Fixed by #8089
Labels

Comments

@flackr
Copy link
Contributor

flackr commented Nov 9, 2022

In web-animations-1, getAnimations is defined to return the list of relevant animations, most notably where the associated effect is current or in effect. The intent is to not need to return animations which will no longer having an affect on the element. Animations which will later have an effect are still considered current.

Scroll-linked animations are not current or in effect due to an inactive time when:

In both of these cases, I think developers would expect the animation to still be considered relevant as it may later have an effect, just as they also expect an animation which has been delayed to be returned by getAnimations.

I propose these animations should be considered to be current, as the definition for current suggests it includes any animation which may become in play. This would mean:

Concretely the change could be adding "If has finite timeline is true" to the list of conditions under which an animation is considered to be current.

@flackr flackr added web-animations-2 Current Work scroll-animations-1 Current Work labels Nov 9, 2022
flackr added a commit that referenced this issue Nov 22, 2022
…with non-increasing timelines. (#8089)

If an animation is associated with a non-monotically increasing timeline it may become active in the future (if non-idle). As such it should still be considered current (the same as an animation which may play in the future). This fixes #8053.
jakearchibald pushed a commit to jakearchibald/csswg-drafts that referenced this issue Jan 16, 2023
…with non-increasing timelines. (w3c#8089)

If an animation is associated with a non-monotically increasing timeline it may become active in the future (if non-idle). As such it should still be considered current (the same as an animation which may play in the future). This fixes w3c#8053.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
1 participant