You can really create an alternative for ie9 + using Modernizr. That way you can still use the object where it is supported. In this example, I also use jQuery.
if ( ! Modernizr.objectfit ) { $('.grid-image').each(function () { var $wrapper = $(this), imgUrl = $wrapper.find('img').prop('src'); if (imgUrl) { $wrapper .css('backgroundImage', 'url(' + imgUrl + ')') .addClass('compat-object-fit') .children('img').hide(); } }); }
Obviously, if any user wants to browse the web using software from the 20th century, he will receive a version of the 20th century website. This is similar to trying to watch 70 mm scenes from Interstellar (or any modern 16: 9 movie) in a 4: 3 TV program, you won't see all the features of the docking scene.
source share