Re: [csswg-drafts] [web-animations-2][css-animations-2] What to do with keyframe offsets outside of animations. (#7825)

> 1. Web compatibility. Changing the conditions under which implicit keyframes are generated seems a bit scary. I was wondering if it would it make any sense to limit the scope of this change to when these `enter`-like keywords are involved but maybe it's fine as-is?

I was thinking that even with option 2, it would still not be allowed to have regular percentage keyframes outside of 0-100% which would mean that no existing animations would hit this. As such, this would only affect new syntaxes like keyframes linked to scroll offsets (or in the future possibly absolute times) where they may dynamically fall outside of the animation's 0 - 100% range.

> Perhaps the bigger concern is JS code that is expecting out-of-range offsets to throw?

These could continue to throw given regular percentage keyframes which are known to be outside of the animation bounds.

> 2. Group effects, specifically sequence effects. I was concerned about multiple effects being active at once but provided the child effects still don't have any effect outside their active interval, maybe it's fine?

That's right, outside of the active interval it would still use the fill behaviour so it should be able to be sequenced with no issue.

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


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

Received on Monday, 31 October 2022 12:17:13 UTC