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

I can see that as an author you’d sometimes want to know the relative “time” _(i.e. a percentage)_ and sometimes you’d want the absolute “time”. We could go with two different methods `getRelative…` and `getAbsolute…` for this, or add an extra argument to the property bag of the existing one. Undecided that the default argument value – `relative` or `absolute` – should be in the latter case.

Side note: seeing that I put time between quotes in the previous paragraph and @fantasai used the word “progress” – and I also hinted at it [here](https://github.com/w3c/csswg-drafts/issues/8201#issuecomment-1493397265) – maybe it’s better to rename the method to `getProgress()`?


-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8765#issuecomment-1521561829 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 10:36:16 UTC