Cue background box's display property should be set to 'inline'.
Calculate line height by counting the lines.

This will probably have issues accounting for runs of
text that are wrapped, but it's more accurate then
the previous way of calculating the line height.