12-150%
3.1-70%
3.2-7.10.01%
BaselineWidely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2022.
Method of specifying how an object (image or video) should fit inside its box. object-fit options include "contain" (fit according to aspect ratio), "fill" (stretches object to fill) and "cover" (overflows box but maintains ratio), where object-position allows the object to be repositioned like background-image does.