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

Re: [csswg-drafts] [css-contain-2] content-visibility should pause css animations in subtree (#5611)

From: vmpstr via GitHub <sysbot+gh@w3.org>
Date: Wed, 28 Oct 2020 17:30:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-718092289-1603906230-sysbot+gh@w3.org>
> Animations would not be created. We would only do this when a style update is developer forced or the content becomes visible.

For what it's worth, this is kind of the current (accidental) state of implementation in Blink. We create animations on any style update, but I think most of those come from developers. I would also assume that we would want to create them on script forced layout, since that implicitly depends on clean style.

@flackr, @chrishtr Let me know if the following summary sounds reasonable:
* We do not create animations in skipped subtrees, unless the style is forced
* We do not tick animations in skipped subtrees (meaning no updates and animations never "end"), even if style is forced
* When becoming rendered again, the animations that already existed are updated to the current time, possibly ending as a result
* When becoming rendered again, new animations are created as usual with current time as the creation time.



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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 28 October 2020 17:30:32 UTC

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