Is there a way to obtain the background height once the window has been resized?
div {
background-image: url(/images/somebackground.jpg);
background-size: 100% 90%;
background-repeat: no-repeat;
width: 70%;
background-size: contain;
background-size: cover;
}
<div></div>