I'm using a pseudo element to display a fallback profile picture when a user does not upload his/her own. The fallback picture works well on Chrome, but not on Firefox. Any idea what causes this?
Chrome
Firefox
CSS
.agent-photo{
width: 70px;
height: 70px;
border-radius: 50px;
object-fit: cover;
position: relative;
}
.agent-photo:before {
background-image: url('../img/default-user-2.jpg');
background-size: 70px 70px;
content: '';
display: block;
width: 70px;
height: 70px;
border-radius: 50px;
margin-bottom:3px;
}
.agent-thumbnail-container{
position: absolute;
top: 50%;
}
.confirmation-container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
HTML
<div class="agent-thumbnail-container">
<img class="agent-photo" src="http://127.0.0.1:8000${agent.profile_pic}" alt="">
<img class="agent-check" src="img/checkmark-green-circle.svg" alt="">
</div>