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

> One other issue I ran into is that it's not trivial for us to do these updates when we getAnimations with subtree: true. This is because the subtree may or may not have content-visibility elements in it. Without first finding that out, we can't force the update on those elements easily. This is a bit of an implementation difficulty in Blink, but I think depending on the spec language we decide to use here, it may be necessary.

So you want to avoid updating style on `content-visibility: hidden` subtrees, but only if there are animations in there?

It seems like you need to update style on the whole subtree regardless if you want to return the right set of animations. But you should have the same issue with a lot of other APIs right? I feel like I might be missing something.

GitHub Notification of comment by emilio
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Monday, 23 November 2020 13:13:36 UTC