Repository navigation
Open
Labels
focus-area-proposalFocus Area Proposal
Description
Description
The media-playback-while-not-visible permission policy allows sites to automatically pause audible media playback of iframes when they're hidden (display: none, visibility: hidden, or width/height equal to 0). While hidden, attempts made by the embedded iframe to render audible media will be blocked. When the frame is shown again the prohibitions are lifted. This allows developers to build more user-friendly experiences and improve performance by letting the browser handle the playback of content that is not visible to users.
<iframe src="https://foo.media.com" allow="media-playback-while-not-visible 'none'"></iframe>Specification
web-feature
web-platform-dx/web-features#4292
Test Links
- https://wpt.fyi/results/html/semantics/embedded-content/media-elements/media-playback-while-not-visible-permission-policy?label=master&label=experimental&aligned&q=media-playback-while-not-visible-permission-policy
- https://wpt.fyi/results/webaudio/the-audio-api/media-playback-while-not-visible-permission-policy?label=master&label=experimental&aligned&q=media-playback-while-not-visible-permission-policy
Additional Signals
Gecko Standards position: Positive (mozilla/standards-positions#1082)
WebKit: No signal (WebKit/standards-positions#409)
Standards discussion at whatwg/html#10208
Reacted by Patrick Brosset, Jayden Pearse, Gabriel Brito, Nishitha Burman Dey and Tanner Lyons
Reacted by Jayden Pearse and Nishitha Burman Dey
Metadata
Metadata
Assignees
Labels
focus-area-proposalFocus Area Proposal
Type
Projects
- StatusShow more project fieldsTodo
Activity
github-actions commentedon Sep 23, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
No web features (from the web-features project) were found in your proposal. If your proposal doesn't correspond to a web feature, that is fine.
Otherwise, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
sumathin-lang commentedon Oct 7, 2026
The ability to mute iframes when they are in the background is an extremely valuable feature for Teams. Without it, the user experience can be very poor: audio may continue playing from a background tab with no clear indication of which tab is responsible. In some cases, users may have no obvious way to stop the audio other than restarting Teams.