Web features explorer

object-fit

Widely available
Tags: css

The object-fit CSS property sets how images, videos, and other replaced elements are scaled within their container. To learn more, see object-fit at MDN.

Compatibility (view on caniuse.com)