Closed Bug 1756765 Opened 3 years ago Closed 3 years ago

Check if the elapsedTime is correct for animationiteration events

Categories

(Core :: CSS Transitions and Animations, task)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: florian, Unassigned)

Details

Latest spec text is here: https://drafts.csswg.org/css-animations-2/#event-dispatch

You won't get a zero elapsedTime for the first iteration because the "current iteration" will be 1 at the point when the first iteration event is dispatched.

Test case here: https://codepen.io/birtles/pen/PoOaabJ

I think the confusion may have been around the "iterationStartTime" which is not the time of the current iteration but the time produced by the iteration start property which lets you start at a given iteration or part-way through one: https://drafts.csswg.org/web-animations-1/#iteration-start

This seems to be based on a misunderstanding of the value of current iteration at the point when the iteration events are dispatched. Closing as invalid but please let me know if I've misunderstood.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.