In the layout step, the browser:
first resizes elements before computing their position
forces the DOM to be rebuilt
computes the size and position of render tree elements
displays the on-screen elements in their new positilons
Explanation:
https://www.youtube.com/watch?v=mFiyWrwyV9s