withDensity

This style with its dimensions replaced by those of density.