Re: [csswg-drafts] [scroll-animations-1] What's the point of animation-range? (#7901)

Note that the [`animation` shorthand](https://drafts.csswg.org/css-animations-1/#animation)'s second `<time>` value is parsed as `animation-delay`, so unless we add `animation-range` to the definition of [`animation`](https://drafts.csswg.org/css-animations-2/#animation-shorthand) we can't restrict `animation-delay` from accepting range values.
Otherwise we can't declare a scroll animation with `animation`.

But at the same time, any `animation-duration` in a scrub animation (scroll or other) is meaningless. It's always `100%`.
Since I'm not an expert on values/parsing, would it make sense to have an alternative definition of `animation` that contains only ranges and no `<time>`? (@fantasai , @flackr)

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


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

Received on Sunday, 23 October 2022 19:21:15 UTC