Re: [csswg-drafts] [css-animations] Support iterationCount field in animationIteration event (#3620)

+1 on adding such a property.

With the `animation` now being passed into the event _(see [resolution](https://github.com/w3c/csswg-drafts/issues/9010#issuecomment-1704330682))_, I think it’s best to add this to the `Animation` object instead of the event so that it can be used in more than just the `animationIteration` event.

As for naming this: `currentIteration` as a name takes my preference, as an author most likely wants to know the current iteration count instead of previous (elapsed) count. Also fine with `currentIterationCount`, which is even more expressive of what it is about.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3620#issuecomment-1713768303 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 11 September 2023 12:20:07 UTC