Re: [csswg-drafts] [scroll-animations-1] Allow named ranges to be used with math functions (#8852)

Thanks @bramus! Yep, that's the use-case for animations at end of scroller.

> > The best way to hack this in would be via a special function, valid in animation-range, that took a keyword+percentage pair and resolved it to a %.
> 
> Would that be something like min(resolve(100%), resolve(cover 50%)), or more like min-range(100%, cover 50%)?

If we use `min()` it's resolved as a `<length-percentage>` and then used as offset from `cover`'s `0%`.
So perhaps the latter, that can be resolved to a "range attachment", or something that's neither a name+length or a length.

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


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

Received on Tuesday, 13 June 2023 10:02:29 UTC