So when the user changes font-size, the height of the image is recomputed.
Image wizardry in eBooks
Jiminy Panoz
914

Yeah, FYI I’ve tried “object-fit: contain” on the figure but it doesn’t update when the user changes font-size.