https://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width
If 'height' and 'width' both have computed values of 'auto' and the element also has an intrinsic width, then that intrinsic width is the used value of 'width'.
This is incorrect; it needs to take into account the transferred min and max height.