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

> > If the start and end points of the named timeline range coincide, return negative infinity for time values before it, positive infinity for time values after it, and zero for time values coinciding with that point.

If range-start = range-end, the animation isn't active so I'm not sure if 0 makes sense or if it should be -infinity since we seem to be in the before phase:

https://jsfiddle.net/flackr/z2ghe9qx/8/

@kevers-google are you good with the +/- infinity values given that we can add them and so that if you copy the progress to another animation you get the same effect?

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


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

Received on Friday, 10 March 2023 19:38:14 UTC