*Contact emails* [email protected] *Explainer* https://github.com/w3c/csswg-drafts/issues/6468 https://github.com/WICG/display-locking/blob/main/explainers/content-visibility.md
*Specification* https://drafts.csswg.org/css-contain-2/#content-visibility *Summary* Media elements inside a subtree skipped by content-visibility (content-visibility: hidden, or content-visibility: auto while off-screen) are muted, and their media events (play, pause, timeupdate, volumechange, ...) are deferred until the subtree is rendered again. Playback itself continues; events are dispatched in order once the content stops being skipped. This prevents users from hearing audio from content that is not rendered, without requiring authors to manually pause or mute media they hide with content-visibility. *Blink component* Blink>CSS <https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3ECSS%22> *Web Feature ID* content-visibility <https://webstatus.dev/features/content-visibility> *Motivation* Today, audio from a media element keeps playing audibly when its subtree is skipped by content-visibility, even though the content is not rendered. Authors who use content-visibility: hidden to implement show/hide UI (or auto for long scrollable pages) must manually track and mute/pause every media element in the subtree to avoid audio from invisible content. The CSSWG resolved that media in skipped subtrees should be muted and its events deferred: https://github.com/w3c/csswg-drafts/issues/6468#issuecomment-887634200 Spec text for the resolution has not landed yet; part of the goal of prototyping is to validate feasibility and inform the spec edits. *Initial public proposal* *No information provided* *Goals for experimentation* None *Requires code in //chrome?* False *Tracking bug* https://issues.chromium.org/issues/40781006 *Estimated milestones* No milestones specified *Link to entry on the Chrome Platform Status* https://chromestatus.com/feature/5121817965625344?gate=4920203208163328 This intent message was generated by Chrome Platform Status <https://chromestatus.com/>. -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFmjHKQH3VTSCxD_xPQhVtZco5kLX7Y4WqAyEwbAxzoyY4R1LQ%40mail.gmail.com.
