Why does chocolate sometimes turn white?

Why does chocolate sometimes turn white?

Have you ever opened a bar of chocolate only to find a white, layer on the surface and wonder if it’s gone bad? Don’t worry—it’s not ruined! That white coating, often called chocolate bloom, is a common occurrence caused by either fat or sugar rising to the surface....