Re: [csswg-drafts] [scroll-animations-1][web-animations-2] getCurrentTime is self-inconsistent wrt representing time (#8765)

@bramus ... so maybe we want parallel `getCurrentTime` and `getCurrentProgress` functions where the former is in .currentTime units and the latter is in percentages (always) and returns null on non-finite ranges?

* Option A: `getCurrentTime()` to return the absolute time offset and `getCurrentProgress()` to get the percentage time offset. Passing `{ range: "name" }` gets the offset / percentage relative to that range.
* Option B: `getCurrentTimeForRange("name")` to return the absolute time offset from the start of the named range, `getCurrentProgressForRange("name")` to return the percentage progress through the named range.


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


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

Received on Tuesday, 25 April 2023 19:44:35 UTC