Skip to content

Commit

Permalink
Make <body topmargin> win over <iframe marginheight> (whatwg#2489)
Browse files Browse the repository at this point in the history
This matches Gecko and Edge. Chromium and WebKit copy the
marginheight attribute from <iframe> to the child document's
<body>, which then takes precedence over topmargin, but copying
the attribute is non-conforming.

Fixes whatwg#2484.
  • Loading branch information
zcorpan authored and inikulin committed May 9, 2017
1 parent 6e14172 commit 04b4649
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -109964,35 +109964,35 @@ html, body { display: block; }</pre>
<tbody>
<tr>
<td rowspan="3"><span>'margin-top'</span>
<td><code>body</code> element's <code data-x="attr-body-marginheight">marginheight</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-marginheight">marginheight</code> attribute
<tr>
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginheight">marginheight</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-topmargin">topmargin</code> attribute
<tr>
<td><code>body</code> element's <code data-x="attr-body-topmargin">topmargin</code> attribute
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginheight">marginheight</code> attribute
<tbody>
<tr>
<td rowspan="3"><span>'margin-right'</span>
<td><code>body</code> element's <code data-x="attr-body-marginwidth">marginwidth</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-marginwidth">marginwidth</code> attribute
<tr>
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginwidth">marginwidth</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-rightmargin">rightmargin</code> attribute
<tr>
<td><code>body</code> element's <code data-x="attr-body-rightmargin">rightmargin</code> attribute
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginwidth">marginwidth</code> attribute
<tbody>
<tr>
<td rowspan="3"><span>'margin-bottom'</span>
<td><code>body</code> element's <code data-x="attr-body-marginheight">marginheight</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-marginheight">marginheight</code> attribute
<tr>
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginheight">marginheight</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-bottommargin">bottommargin</code> attribute
<tr>
<td><code>body</code> element's <code data-x="attr-body-bottommargin">bottommargin</code> attribute
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginheight">marginheight</code> attribute
<tbody>
<tr>
<td rowspan="3"><span>'margin-left'</span>
<td><code>body</code> element's <code data-x="attr-body-marginwidth">marginwidth</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-marginwidth">marginwidth</code> attribute
<tr>
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginwidth">marginwidth</code> attribute
<td>The <code>body</code> element's <code data-x="attr-body-leftmargin">leftmargin</code> attribute
<tr>
<td><code>body</code> element's <code data-x="attr-body-leftmargin">leftmargin</code> attribute
<td>The <code>body</code> element's <span>container frame element</span>'s <code data-x="attr-iframe-marginwidth">marginwidth</code> attribute
</table>

<p>If the <code>body</code> element's <span>node document</span>'s <span
Expand Down

0 comments on commit 04b4649

Please sign in to comment.