Re: [csswg-drafts] [css-animations-2][web-animations-2] How should `animation-play-state` interact with `animation-trigger`? (#12064)

> If animation’s trigger has a monotonic timeline: return false.

Why can't a monotonic timeline be a trigger? I mean I know we don't have the ability to specify meaningful ranges today but it seems like this doesn't need a special case, all monotonic timeline triggers specifiable today will be in a permanently triggered state AFAICT.

> This way, cancel(), by making the effect’s local time unresolved, still stops the animation from being in effect regardless of the trigger. And, when cancel() has not been called and an animation has not been triggered, a forwards direction animation’s effect will be considered to be in its before phase and if it [has fill-mode: both/backwards](https://drafts.csswg.org/web-animations-1/#:~:text=If%20the%20fill%20mode%20is%20backwards%20or%20both), it’ll have an active time and be in effect, otherwise it won’t.

I think we need to stop the trigger if cancel is called, does your proposal do this? I'm not sure how you would re-arm the trigger, unless we decide that play on an animation with a trigger does not actually mean to play it but just to arm the trigger.

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


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

Received on Wednesday, 16 April 2025 15:17:14 UTC