[csswg-drafts] [scroll-animations-1] [web-animations-2] Clarifying behavior of getCurrentTime(rangeName) (#8114)

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

== [scroll-animations-1] [web-animations-2] Clarifying behavior of getCurrentTime(rangeName) ==
A few questions regarding getCurrnetTime(rangeName) in AnimationTimeline.

Why does the progress need to be constrained between 0 and 100%.  If in the 'contain' range and asking for the currentTime of the 'enter' range, should we  not return a value greater than 100%?

What if the range is zero? If I recall correctly, a zero 'cover' range should result in an inactive timeline, which is handled in the algorithm, but what if the enter / exit range is zero due to having a target element of height zero (axis: vertical) and then querying one of those ranges? Perhaps this is deserving of a "returns null".  This example may seem contrived, but it is doable.  How about the case when the target exceeds the viewport size and fetching the 'contain' progress?  As we transition from the 'enter' to the 'exit' range, the cover range has a height or width of zero.



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


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

Received on Monday, 21 November 2022 15:01:44 UTC