Re: [csswg-drafts] [scroll-animations-1] Bring back Scroll Offsets (#7575)

My take is that some units, like percentages, can be used across multiple domains (times and lengths) whereas others (e.g. times and lengths) only work in their domains. We've seen lots of developer demand both for time based (see #4907) and scroll / length based animations (this issue and others) wanting to not have to use the abstract progress types (percentages) especially in cases where the percentage is not static. My take is that we should allow developers to use the unit type that makes the most sense to them in the context, even if it means that animation effect can't be used on a different type of timeline.

I don't think any of this precludes us making effects that work harmoniously within an animation group. E.g. percentages can still resolve against the ancestor's duration as you've suggested even if that ancestor has a time or length based duration. If you make the same analogy to boxes the fact that we have other ways to specify lengths would be similar to using `px` or `cqh` to refer to absolute durations outside of whatever the parent effect is.

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


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

Received on Wednesday, 23 November 2022 21:48:05 UTC