The parent sets contain. The image uses inherit, so it copies that value. object-fit is not inherited by default.
object-fit
Lines: 0 | Characters: 0