How does jquery's slideDown method get the height of my hidden elements?

I set display:none;, for an element and then call slideDown, to observe it on the console and find that the element is first display:block;, and then slides down through the height change, but how is this height obtained?

Menu