summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/extensibility/foreignObject/foreign-object-margin-collapsing.html
blob: 49320f9573134b4d3ac85107f2e3326450f4b9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!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>