Truly independent web browser
<!DOCTYPE html>
<link rel="match" href="../expected/img-height-inside-anonymous-wrapper-ref.html" />
<style>
.a {
background-color: red;
height: 300px;
width: 300px;
}
img {
height: 100%;
}
</style>
<div class="a"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M/wHwAEBgIApD5fRAAAAABJRU5ErkJggg=="><div>