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
Browser Support Releases
| Browser | Type | Version | Release 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 Key | Area | Core-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 |