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.

Removing that check should be fine. We probably just need to check that its trigger isn't `null`.

> I think we need to stop the trigger if cancel is called, does your proposal do this? 

No, I'm not proposing we disable the trigger when cancel is called. I can see how that would make sense to a developer but are you suggesting that as a way of addressing the current issue we are discussing (preserving the effect/behavior of cancel) or are you suggesting that separately/generally (this would be related to [#11914](https://github.com/w3c/csswg-drafts/issues/11914#issuecomment-2759023804))? I don't think we need to disable the trigger to preserve the behavior of cancel.


-- 
GitHub Notification of comment by DavMila
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12064#issuecomment-2810120470 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 16:34:03 UTC