steren’s avatarsteren’s Twitter Archive—№ 5,349

  1. object-fit: cover; is the CSS property I've been waiting for 10 years! No need to use the background-image`CSS hack to ensure image are not stretched: use <img src=""> (when it makes sense to use an img tag), image keeps aspect ratio and iscropped. developer.mozilla.org/en-US/docs/Web/CSS/object-fit
    OpenGraph image for developer.mozilla.org/en-US/docs/Web/CSS/object-fit