Div uses min-content/max-content width of the math:
Div uses specified width:
PNG example (numerator/denominator shifts depend on math font):