She said getting the height of *contents* of the div. This would simply return the un-expanded height = 2em. I'd be interested to see what ChatGPT outputs to animate an expandable div container, though I'd expect it's just a rephras