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.
Status
Baseline Widely Available (since 2024-03-20)
MDN documentation
Specifications
Browser support
- Chrome 88 Released on 2021-01-19
- Chrome Android 88 Released on 2021-01-19
- Edge 88 Released on 2021-01-21
- Firefox 89 Released on 2021-06-01
- Firefox for Android 89 Released on 2021-06-01
- Safari 15 Released on 2021-09-20
- Safari on iOS 15 Released on 2021-09-20
Surveys
- State of CSS 2025 > usage > gamechanger feature
- State of CSS 2025 > usage > favorite new features
- State of CSS 2025 > usage > css missing features
- State of CSS 2025 > usage > css interoperability features
- State of CSS 2025 > usage > css general pain points
- State of CSS 2025 > shapes graphics > shapes graphics pain points
- State of CSS 2025 > layout > layout pain points
- State of CSS 2025 > features > all features
- State of CSS 2024 > usage > favorite new features
- State of CSS 2024 > usage > css interoperability features
- State of CSS 2024 > features > all features
Usage (according to Chrome Platform Status)
~31.920% of page loads. More data at chromestatus.com.Interop
- Included in Interop 2021
- Included in Interop 2022
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist