Re: [csswg-drafts] [scroll-animations-1] Animation.getCurrentTime is easily confused with Animation.currentTime (#8201)

Per the TAG Design Principles, [optional and/or primitive arguments should be accepted through dictionaries](https://w3ctag.github.io/design-principles/#prefer-dictionaries), not positional arguments.
In this case, this would mean `getCurrentTime({ rangeName: "cover" })` (or perhaps `getCurrentTime({ range: "cover" })`). This also allows `.getCurrentTime()` without arguments to continue being equivalent to `.currentTime`, as it should be.

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


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

Received on Tuesday, 11 April 2023 10:14:22 UTC