Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bradbeattie
· 11y ago · 0 comments
It's a shame IE doesn't support
http://caniuse.com/#feat=object-fit
Comments
[–]
explorigin
11y ago
But there's a shim:
https://github.com/anselmh/object-fit
[–]
typedetail
11y ago
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