Whether the line-height of containers is used as the minimum line-height for their lines by default depends on the doctype. This can be overridden by using the minLineHeightFromContainer QuirksSettings property.


Example:

Disable minimum line-height from container

config.setQuirksSettings(new QuirksSettings().setMinLineHeightFromContainer(QuirksMode.QUIRKS));