Does position: absolute of the child element affect the parent?
The element with position: absolute breaks out from the document flow. It's why the parent doesn't know this child. So the computed height value is 0.
P.S. Folks, let’s chat! I’m waiting you.