Prisma saysobject-fit controls how an <img> or <video> fills its box — cover, contain, fill, none.
When you give a replaced element a fixed width and height, object-fit decides how the media fills it: cover (fill, crop), contain (fit, letterbox), fill (stretch), none (native). It's the image equivalent of background-size — essential for uniform thumbnails.
Power-ups you unlock
object-fit: cover | contain | fill | none
cover crops to fill; contain fits with letterbox
Like background-size, but for <img>/<video>
Key for uniform thumbnail/avatar grids
Jank the Janitor attacks — common mistakes
Stretched (distorted) images from default fill
Forgetting to set both width and height
cover when the whole image must be visible
Boss battleForce differently-sized images into uniform 100×100 thumbnails with object-fit:cover.