Re: [csswg-drafts] [scroll-animations-1] currentTime for animations attached to a timeline attachment range (#8669)

Good call. Could be solved by pass the `animation.rangeStart` and `animation.rangeEnd` into `getCurrentTime[ForRange]`, so that it can do its calculations.

I think that would rhyme nicely with [the suggested property bag approach](https://github.com/w3c/csswg-drafts/issues/8201), no?

```js
const { timeline, rangeStart, rangeEnd } = animation;
 
const value = timeline.getCurrentTime({
  rangeStart,
  rangeEnd
});
```

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


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

Received on Thursday, 6 April 2023 14:35:50 UTC