Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tvanantwerp
on Nov 24, 2016
|
parent
|
context
|
favorite
| on:
OK Go’s video, for the song “The One Moment”, took...
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:
https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit