HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by bradbeattie | Hacker News Reader
Full thread
bradbeattie
·
It's a shame IE doesn't support
http://caniuse.com/#feat=object-fit
View on HN
explorigin
·
But there's a shim:
https://github.com/anselmh/object-fit
typedetail
·
object-fit doesn't solve the problem, it is similar to using background-image and set the background-size:cover. Still when the container's width/height ratio doesn't match the image's, there is risk that image could be inappropriately cut off
Reply on news.ycombinator.com