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

> It looks like we need a follow-up resolution here for what happens when start=end? I think we basically have these two options for when the start and end points of a named timeline range coincide:
> 
> * Return negative infinity for time values before the range, positive infinity for time values after it, and zero for time values coinciding with that point.
> * Return positive infinity for time values after the range, and negative infinity for times coinciding with and before.

I recommend the latter for the same reason I recommended the infinity values. If a developer applies this to another animation it will clearly put the effect into the before phase rather than active as it would be on a real animation.

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


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

Received on Wednesday, 29 March 2023 20:15:22 UTC