W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

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

From: Rune Lillesveen via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 Jun 2020 08:34:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-650058809-1593160489-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:09 UTC