css image fit in div with aspect ratio

CSS
background-image: url("images/DSELOGO trasparente.png");
background-size:contain;
background-repeat:no-repeat;img {
    width: 100%;
    height: 100%; 
    object-fit: contain;
}
Source

Also in CSS: