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

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 Nov 2020 13:13:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-732153442-1606137213-sysbot+gh@w3.org>
> 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 https://github.com/w3c/csswg-drafts/issues/5611#issuecomment-732153442 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 23 November 2020 13:13:36 UTC

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