🏠 New in High Baseline Support: aspect-ratio

March 20, 2024

caniuse · mdn · spec

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.

Source features