Baseline Widely CSS

aspect-ratio

The aspect-ratio CSS property controls the width-to-height ratio of elements. For <img> and <video> elements, the width and height attributes used together with height: auto control the aspect ratio while the image/video is loading.

Baseline Status
Widely Available
Since 2021-09-20
First Core Launch
Chrome 88
2021-01-19
Core-3 Stability
244d
Last: Safari (2021-09-20)
BCD Keys Mapped
4
Group: CSS

Browser Support Timeline

Chrome v88 (2021-01-19) Chrome Android v88 (2021-01-19) Edge v88 (2021-01-21) Firefox v89 (2021-06-01) Firefox for Android v89 (2021-06-01) Safari v15 (2021-09-20) Safari on iOS v15 (2021-09-20)
Green dot marks the first browser release (2021-01-19); blue dots show subsequent browser launches (+244d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Chrome desktop 88 2021-01-19
Chrome Android mobile 88 2021-01-19
Edge desktop 88 2021-01-21
Firefox desktop 89 2021-06-01
Firefox for Android mobile 89 2021-06-01
Safari desktop 15 2021-09-20
Safari on iOS mobile 15 2021-09-20

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
css.properties.aspect-ratio CSS 244d
css.properties.aspect-ratio.auto CSS 244d
html.elements.img.aspect_ratio_computed_from_attributes HTML 650d (1.8y)
html.elements.video.aspect_ratio_computed_from_attributes HTML 281d