Re: [csswg-drafts] [scroll-animations-1] currentTime when scroll range is 0 (again) (#7778)

I don't agree with the expectation here. When a scroller shrinks from scrollable to not scrollable the animation will arbitrarily jump to the end even if it was previously at 0 progress (and is still at 0 scrollTop / scrollLeft), which to me seems surprising. I'm not sure how you can decide that one end of the scroll is the preferred state. You can set the style you want when there is 0 scroll range by setting the underlying style (not in the animation).

Making this configurable by animation-fill-mode is I think not feasible. The timeline current time is an input to the animation, and each associated animation can have a different fill mode. I suppose we could always have the timeline output 100% if there is no scroll, but I worry that this may be overindexing on your read progress indicator use case.

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


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

Received on Friday, 7 October 2022 15:45:47 UTC