Re: [csswg-drafts] [scroll-animations-1] Define how the `source` member of a `ScrollTimeline` corresponding to a `scroll()` timeline is updated (#8204)

My proposal would be that we spec the chromium behavior. That similar to an animation object, a timeline object is created for the element which defines it and that same object is used until an explicit style change causes us to create a new one.

The source is computed when you ask for it (like computed styles). Normally this occurs once per frame when we update the time but querying from script can result in freshening style and layout to determine the current source. Of course it may be more consistent if we allow the source to be stale just as the time returned is the one most recently used and just as the current time of an AnimationTimeline is the time when the current frame was generated - not the current time.

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


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

Received on Tuesday, 31 January 2023 20:02:05 UTC