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

> 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