The purpose of this repo is to assist in supporting object-fit
and object-position
in IE11 using TailwindCSS.
To use:
- Enable
target:ie11
in your Tailwind config. This removes theobject-fit
related classes. - Add
object-fit-polyfill
to your css, make sure it is included after the Tailwind utilities. - Install object-fit-images. You will not need to make any css changes as
object-fit-polyfill
in this repo already provides the necessary changes.
Note: Depending on the javascript your project is using, IE11 may not support it. Ensure that your javascript is working properly otherwise this won't work!