Prevent margin collapse in the root flow

According to the CSS specification, section 8.3.1, margins of the root
element's box do not collapse. Ensure that root flow margins do not
collapse during the assign heights phase.
Merge pull request #3107 from mrobinson/root-margin-collapse

Prevent margin collapse in the root flow