1

I've noticed a small problem. The object-fit: cover doesnt seem to work on Safari Mobile. Is there any workaround for it? If u can see in the image, the background image is leaking out of the container. enter image description here

Below is a snippet of my code:

        .background-img{
            width:100%;
            min-height: 100%;
            object-fit: cover;
            z-index:1;
        }
hoseh
  • 129
  • 1
  • 3
  • 14
  • Does this answer your question? [Object-fit: cover not working correctly on Safari](https://stackoverflow.com/questions/60192601/object-fit-cover-not-working-correctly-on-safari) – MattHamer5 Jul 07 '21 at 12:55
  • Unfortunately not, I've tried it as well – hoseh Jul 07 '21 at 13:00
  • Could you put up the code and image that's giving the problem as I haven't reproduced it. – A Haworth Jul 07 '21 at 13:17
  • I've just added my code! It's pretty standard just object-fit: cover but the image is still leaking only on safari mobile. – hoseh Jul 08 '21 at 11:05

0 Answers0