Web features explorer

object-fit

Widely available since 2022-07-15
Tags: css

The object-fit CSS property sets how images, videos, and other replaced elements are scaled within their container.

Learning resources on MDN

Browser support (view on caniuse.com)