Browsers of WebKit origin seem to collapse margins (https://developer.mozilla.org/en-US/docs/Web/CSS/margin_collapsing) across <foreignObject> (https://bugs.webkit.org/show_bug.cgi?id=23963). This results in the top-margin of HTML rendered being ignored in these browsers. Firefox renders a default top-margin of 8px.