aspect-ratio
Widely availableThe 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.