Document Policy: Unsized Media
- Category
- Multimedia
- Type
- New or changed feature
- Status
- No active development (Chrome No active development)
- Intent stage
- None
Summary
Allows developers to selectively enable and disable the use of media elements (<img> and <video>) without specified dimensions through the Feature-Policy HTTP header or the <iframe> 'allow' attribute. This provides more control over media elements with unspecified dimension, on a per-origin basis. Use this policy to improve layout stability. The identifier for the feature in policies is 'unsized-media'. By default, 'unsized-media' is allowed in all frames.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://crbug.com/874113
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=document-policy-unsized-media
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Document%20Policy%3A%20Unsized%20Media
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Document%20Policy%3A%20Unsized%20Media
- Baseline status: https://webstatus.dev/?q=Document%20Policy%3A%20Unsized%20Media
Docs: https://github.com/WICG/feature-policy/blob/master/policies/unsized-media.md
Samples: https://feature-policy-demos.appspot.com/unsized-media.html?on