I noticed that if I set the height of an image element to 100% it does not actually respect the parent's height.
It seems like this function is lacking height percentage handling:
https://github.com/AvaloniaUI/Avalonia.HtmlRenderer/blob/master/Source/HtmlRenderer/Core/Dom/CssLayoutEngine.cs#L31