I am making a site in Wordpress using Elementor, and I have images where the Object Fit is set to Cover. This works fine on Firefox, but when using Google Chrome it doesn't appear to be working. See the image below:
Don't worry about the font, that's just in my Chrome settings.
Here is the settings on the image in Elementor:
Does anyone know why this is happening?
Even if I add the CSS
img{
object-fit: cover;
}
it still doesn't work properly.
EDIT: I don't think it has to do with Elementor or anything, just with Chrome itself. If I just do the following:
<html>
<style>
img{
object-fit: cover;
height: 200px;
width: 200px;
}
</style>
<img src="228.jpeg">
</html>
It still doesn't work properly in Chrome, giving the following: