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.

Demo

Documentation

Status in Chromium

Blink>HTML


No longer pursuing (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • No signal
  • No signals

Owner

Comments

This proposal is no longer active. Instead, efforts are focused on the alternate approach described here: https://github.com/WICG/intrinsicsize-attribute/issues/16#issuecomment-503245998.

Last updated on 2021-05-05