‘Shrink-to-fit’ width of parent based on intrinsic width of replaced child element (when ‘width’ is specified as ‘auto’) is wrongly retained when value of max-width of child is smaller than its intrinsic width

Below, there should be a 100px by 100px lime-green square, with absolutely no red visible.