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

The CSS Working Group just discussed `[scroll-animations-1] [web-animations-2] Clarifying behavior of getCurrentTime(rangeName)`, and agreed to the following:

* `RESOLVED: Return positive infinity for time values after the range, and negative infinity for times coinciding with and before`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> astearns: Follow up about what happens when start = end<br>
&lt;dael> flackr: I believe fantasai added to agenda. Clarification is how to handle start time = end time<br>
&lt;dael> flackr: I've prop never return 0 for current time with assumption dev is plugging this into an animation and if they plug - or + infinity they guar. the animation is before or after phase and that's not same as the effect they're copying time of<br>
&lt;astearns> ack fantasai<br>
&lt;dael> fantasai: I don't have much of an opinion. If it's not 0, then what is it? Can we resolve on what we want it to be?<br>
&lt;dael> flackr: It's what you said in your second option.<br>
&lt;dael> flackr: [reads]<br>
&lt;astearns> Return positive infinity for time values after the range, and negative infinity for times coinciding with and before.<br>
&lt;dael> fantasai: So negative infinity for coinciding? I don't know I thought through this.<br>
&lt;dael> flackr: Yes, that is correct<br>
&lt;dael> fantasai: I know I suggested negative infinity, but I don't remember why<br>
&lt;fantasai> and maybe I got it backwards when typing<br>
&lt;dael> astearns: Only difference between your options is what we do with time values coinciding with a single point in the range<br>
&lt;dael> fantasai: Right, if you land on that point should it be before or after start<br>
&lt;dael> flackr: I believe I compared this to a running animation with 0 duration. Recollection is your statement matched the animation behavior<br>
&lt;dael> fantasai: If you think it's right, I'm fine. I just want to make sure<br>
&lt;dael> astearns: My question- is this just an edge case we're filling a rational answer in for or is this something devs are expected to handle?<br>
&lt;dael> flackr: My opinion this is a bit of an edge case and we're trying to fill in value that would give the same effect as an animation with that range<br>
&lt;dael> astearns: Other comments on this?<br>
&lt;dael> astearns: Prop: Return positive infinity for time values after the range, and negative infinity for times coinciding with and before<br>
&lt;dael> astearns: Objections?<br>
&lt;dael> RESOLVED: Return positive infinity for time values after the range, and negative infinity for times coinciding with and before<br>
&lt;dael> astearns: As fantasai said, seems a bit weird but this is a good...<br>
&lt;dael> flackr: I did paste a demo on March 10 demonstrating. So I'm not misremembering<br>
&lt;dael> astearns: If you have time fantasai or anyone else please take a bit of time considering implications in case we want to revisit<br>
&lt;dael> github-bot topic, https://github.com/w3c/csswg-drafts/issues/8542#issuecomment-1515216159<br>
</details>


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


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

Received on Wednesday, 3 May 2023 23:25:14 UTC