---
id: "aspect-ratio"
kind: "web-feature"
canonical: "https://timetostable.com/feature/aspect-ratio"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# aspect-ratio (`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.

- **Group**: CSS
- **Baseline**: Widely Available
- **Newly Available Date**: 2021-09-20
- **Widely Available Date**: 2024-03-20
- **Specification**: https://drafts.csswg.org/css-sizing-4/#aspect-ratio
- **Constituent BCD keys**: 4

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 88 | 2021-01-19 |
| Chrome Android | 88 | 2021-01-19 |
| Edge | 88 | 2021-01-21 |
| Firefox | 89 | 2021-06-01 |
| Firefox for Android | 89 | 2021-06-01 |
| Safari | 15 | 2021-09-20 |
| Safari on iOS | 15 | 2021-09-20 |

