The pair correlation function of krypton in the critical region: theory and experiment