An object-fit polyfill for Internet Explorer
JavaScript
Switch branches/tags
Nothing to show
Clone or download
gradosevic and jonathantneal Fix for undefined currentStyle undefined (#12)
Fixed error in IE 11:
Unable to get property 'object-fit' of undefined or null reference
Latest commit 2c64cba Apr 18, 2017
Permalink
Failed to load latest commit information.
demos 1.0.0 Nov 26, 2015
dist Update fitie.js (#5) Aug 29, 2016
lib Fix for undefined currentStyle undefined (#12) Apr 18, 2017
.editorconfig 1.0.0 Nov 26, 2015
.eslintignore 1.0.0 Nov 26, 2015
.eslintrc 1.0.0 Nov 26, 2015
.gitignore 1.0.0 Nov 26, 2015
.travis.yml 1.0.0 Nov 26, 2015
CHANGELOG.md 1.0.0 Nov 26, 2015
CONTRIBUTING.md 1.0.0 Nov 26, 2015
README.md 1.0.0 Nov 26, 2015
gulpfile.js Update gulpfile.js (#8) Aug 29, 2016
package.json 1.0.0 Nov 26, 2015

README.md

fitie

NPM Version Build Status

fitie is an object-fit polyfill for Internet Explorer browsers.

The object-fit property defines how an element responds to the height and width of its content box. It’s intended for images, videos and other embeddable media formats.

To start using object-fit in Internet Explorer 8 - 11, add an object-fit property to your CSS file.

img.cover, video.cover {
	object-fit: cover;
}

Then, somewhere in the document, include a link to fitie.

<script src="fitie.js"></script>

That’s it. Enjoy!