W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2021

Re: [csswg-drafts] [css-contain-2]: Pause media playback in iframes hidden by content-visibility:hidden (#6468)

From: Justin Ridgewell via GitHub <sysbot+gh@w3.org>
Date: Mon, 26 Jul 2021 22:47:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-887077886-1627339674-sysbot+gh@w3.org>
> But shouldn't we apply that to all iframes (not only for cross-origin)

Yes, please. My use-case was just to highlight that I can't directly access the `<video>` inside the iframe to force a pause (since it's cross-origin). I think likely apply to any descendant trees (eg, hiding the `<div>` in `<div><video/></div>`), and all iframes.

> all playback (also for audio)?

Possibly yes (and this would help us). I think it's a very clear example that `content-visibility` should affect a `<video>` because it's visual. It's a little iffy if it should affect an `<audio>`, but I don't think it would be bad to do so.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 26 July 2021 22:47:57 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:25 UTC