Reset the font-size of html and body before measuring the em value.