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

> 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