- From: Brian Birtles via GitHub <sysbot+gh@w3.org>
- Date: Fri, 01 Mar 2019 02:02:26 +0000
- To: public-css-archive@w3.org
Thinking about this a bit further, automatically canceling is a bit weird. Under this proposal two animations might start at the same time but one ends up in the `"finished"` state while another ends up in the `"idle"` state just because of a difference in fill mode. Fill mode and play state should be orthogonal. Perhaps we need some orthogonal bit of state for reflecting replaced-ness. e.g. ```webidl enum ReplaceState { no, // Not yet replaced replaced, persisted } partial interface Animation { attribute EventHandler onreplace; readonly attribute ReplaceState replaced; void persist(); // Throws if replaced === 'no'? } ``` (I also looked at putting this onto the effect instead so that in a `GroupEffect`-world we could replace on an effect-by-effect basis but I think it complicates things a lot and authors will not want that fine-grained behavior. It's also at odds with the model in a number of ways--putting event handlers on effects, making effects stative, etc.) -- GitHub Notification of comment by birtles Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3689#issuecomment-468513090 using your GitHub account
Received on Friday, 1 March 2019 02:02:28 UTC