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

> I'm leaning towards allowing a multiple style/layout passes. This would be similar to how ResizeObserver [performs multiple style and layout cycles](https://drafts.csswg.org/resize-observer/#html-event-loop) however I would suggest that we only do this in the case where the ScrollTimeline was created in the current cycle, to allow for the creation of the CSS layout box, and not repeat if the scroll timeline's animation modifies layout as the author has done something wrong if this happens, and this would be a significant performance pitfall if it happened every frame.

What's the definition of a ScrollTimeline being created in the current cycle for animation-timeline/@scroll-timeline? Is it that the computed value of animation-timeline changes and that the name matches a @scroll-timeline with the source matching an element? Could we have a situation where animation-timeline flips back and forth for each style/layout pass? Or is that guaranteed not to happen because animation-timeline has animatable:no?


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

Received on Friday, 26 June 2020 08:34:52 UTC