[csswg-drafts] [scroll-animations-1] Should range of ViewTimeline be clamped to scrollable range? (#7432)

flackr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [scroll-animations-1] Should range of ViewTimeline be clamped to scrollable range? ==
As the spec for [ViewTimeline](https://drafts.csswg.org/scroll-animations-1/rewrite#view-timelines) doesn't include the formula to determine the current time it's not clear what the current expected behavior is when the element cannot scroll fully out of view / into view.

E.g. For a header which starts partially in view such as the [parallax header on the scroll timeline polyfill demo](https://flackr.github.io/scroll-timeline/demo/parallax/), should the animation start at 0% even though the element has already almost left the scrollport, or should it start at the element's current progress through the scrollport (e.g. ~70% since it's about to start scrolling offscreen)?

My opinion is clamping to the actually scrollable range is likely to produce the more expected result, but wanted to ensure we have an open issue to track this until the spec includes the formula / touches on this issue.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7432 using your GitHub account


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

Received on Wednesday, 29 June 2022 19:55:58 UTC