<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#embedded-ForeignObjectElement">
<link rel="help" href="https://www.w3.org/TR/CSS22/box.html#collapsing-margins">
<link rel="match" href="foreign-object-size-ref.html">
<svg>
  <foreignobject width="100" height="100" style="background:red;">
    <div style="margin:100px 0;">
      <div style="margin:100px 0;"></div>
    </div>
    <div style="margin:100px 0;">
      <div style="margin:100px 0;"></div>
    </div>
    <div style="margin-top:-100px; height:100px; background:green;"></div>
  </foreignobject>
</svg>
