← Back to release summary

Intrinsic size attribute

Category
Multimedia
Type
New or changed feature
Status
No longer pursuing (Chrome No longer pursuing)
Intent stage
None

Summary

This attribute allows developers to specify the intrinsic size of a media element (<img>, <video>, <svg:image>). With this attribute media elements will maintain their aspect ratios. Developers need only specify one dimension, either a percentage or pixel value, and the other dimension will be computed immediately without causing a visual re-flow.

Standards & signals

Ecosystem

Docs: https://github.com/WICG/intrinsicsize-attribute

Samples: https://googlechrome.github.io/samples/intrinsic-size/

View on chromestatus.com