Re: [csswg-drafts] [scroll-animations] Behavior of scroll-linked animations in the first frame (#5261)

@andruud Please check my PR and see if you think it is sufficient. I tried to be very specific about exactly when in the event loop updates happen.

Note that unlike your proposal, JS constructed animations still sample at the beginning of the frame. I feel like trying to defer script constructed animations adds unnecessary complexity - though it does mean that we have to freshen style and layout additionally during step 7.10 for those animations but I believe we already have to do this for event dispatch. If we want to defer them we'll have to track newly constructed timelines beyond the scope of one event loop update.

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


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

Received on Friday, 2 December 2022 19:35:43 UTC