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
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=874629
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=intrinsic-size-attribute
- 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+Intrinsic%20size%20attribute
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Intrinsic%20size%20attribute
- Baseline status: https://webstatus.dev/?q=Intrinsic%20size%20attribute
Docs: https://github.com/WICG/intrinsicsize-attribute
Samples: https://googlechrome.github.io/samples/intrinsic-size/