web-features explorer

aspect-ratio

Widely available since 2024-03-20 (baseline high)

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.

Compatibility

BCD data