Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I recently learned of a CSS property, object-fit, than can achieve the same positioning effects as background-size for DOM elements without having to inject background-image style attributes. But, unsurprisingly, it's got no IE support.

https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: