fix this with some JS
Neat trick for CSS object-fit fallback on Edge (and other browsers)
Primož Cigler
64637

For those who don’t want or can’t use jQuery:

if ( ! Modernizr.objectfit ) {
document.querySelector('.post__image-container').forEach(function () {
var $container = this,
imgUrl = $container.querySelector('img').getAttribute('src');
if (imgUrl) {
$container
.style.backgroundImage('url(' + imgUrl + ')')
.setAttribute('class', 'compat-object-fit');
}
});
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.