← Back to release summary

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

Ecosystem

Docs: https://github.com/WICG/feature-policy/blob/master/policies/unsized-media.md

Samples: https://feature-policy-demos.appspot.com/unsized-media.html?on

View on chromestatus.com