V
V
Vadim Yagofarov2019-06-05 20:16:01
JavaScript
Vadim Yagofarov, 2019-06-05 20:16:01

Why doesn't object-fit-polyfill work?

Why doesn't object-fit-polyfill work? Downloaded it to the project via npm i object-fit-polyfill webpack. Connected scripts and styles import fit from './polyfill.object-fit.min'@import "polyfill.object-fit.min.css";. But the property doesn't work properly. The task is to make the css property object-fit: cover work in ie11 but it does not work and the image shrinks ((. What could I have done wrong? test.avalonsec.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ma4t, 2019-06-05
@ma4t

5cf80f1765772293270946.png
I used these two objects, I did the import in such a way as in the picture for more details about picture
fill
https://scottjehl.github.io/picturefill/
image
and a polyfill of a picture, so that in IE the possibility of substituting an image through the source tags also works for the picture tag,
yours should also work. you are probably not connecting correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question