Skip to content

Commit

Permalink
[giow] (3) Define img.lowsrc, needed for compat
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=10341
Affected topics: HTML, Rendering

git-svn-id: http://svn.whatwg.org/webapps@7929 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 6, 2013
1 parent 8319007 commit b7b1df7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
15 changes: 10 additions & 5 deletions complete.html
Expand Up @@ -93971,16 +93971,16 @@ <h4 id=margin-collapsing-quirks><span class=secno>14.3.10 </span>Margin collapsi
<code><a href=#the-p-element>p</a></code>, <code><a href=#plaintext>plaintext</a></code>, <code><a href=#the-pre-element>pre</a></code>, <code><a href=#the-ul-element>ul</a></code>, <code><a href=#xmp>xmp</a></code></p>

<p>In <a href=#quirks-mode>quirks mode</a>, any <a href=#concept-rendering-elements-with-margins title=concept-rendering-elements-with-margins>element
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code>td<code>, or
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code><a href=#the-td-element>td</a></code>, or
<code><a href=#the-th-element>th</a></code> element and has no <a href=#concept-rendering-substantial title=concept-rendering-substantial>substantial</a>
previous siblings is expected to have a user-agent level style sheet rule that sets its
'margin-top' property to zero.</code></code></p>
'margin-top' property to zero.</p>

<p>In <a href=#quirks-mode>quirks mode</a>, any <a href=#concept-rendering-elements-with-margins title=concept-rendering-elements-with-margins>element
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code>td<code>, or
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code><a href=#the-td-element>td</a></code>, or
<code><a href=#the-th-element>th</a></code> element, has no <a href=#concept-rendering-substantial title=concept-rendering-substantial>substantial</a>
previous siblings, and is <a href=#concept-rendering-blank title=concept-rendering-blank>blank</a>, is expected to have
a user-agent level style sheet rule that sets its 'margin-bottom' property to zero also.</code></code></p>
a user-agent level style sheet rule that sets its 'margin-bottom' property to zero also.</p>

<p>In <a href=#quirks-mode>quirks mode</a>, any <a href=#concept-rendering-elements-with-margins title=concept-rendering-elements-with-margins>element
with default margins</a> that is the child of a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> element, has
Expand Down Expand Up @@ -96626,6 +96626,7 @@ <h4 id=other-elements,-attributes-and-apis><span class=secno>15.3.4 </span>Other

<hr><pre class=idl>partial interface <a href=#htmlimageelement id=HTMLImageElement-partial>HTMLImageElement</a> {
attribute DOMString <a href=#dom-img-name title=dom-img-name>name</a>;
attribute DOMString <a href=#dom-img-lowsrc title=dom-img-lowsrc>lowsrc</a>;
attribute DOMString <a href=#dom-img-align title=dom-img-align>align</a>;
attribute unsigned long <a href=#dom-img-hspace title=dom-img-hspace>hspace</a>;
attribute unsigned long <a href=#dom-img-vspace title=dom-img-vspace>vspace</a>;
Expand All @@ -96644,7 +96645,11 @@ <h4 id=other-elements,-attributes-and-apis><span class=secno>15.3.4 </span>Other
content attribute, which for the purposes of reflection is defined
as containing a <a href=#url>URL</a>.</p>

<!-- lowsrc is explicitly not given here, see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10341 -->
<p>The <dfn id=dom-img-lowsrc title=dom-img-lowsrc><code>lowsrc</code></dfn> IDL
attribute of the <code><a href=#the-img-element>img</a></code> element must <a href=#reflect>reflect</a>
the element's <code title=attr-img-lowsrc><a href=#attr-img-lowsrc>lowsrc</a></code>
content attribute, which for the purposes of reflection is defined
as containing a <a href=#url>URL</a>.</p>

<hr><pre class=idl>partial interface <a href=#htmlinputelement id=HTMLInputElement-partial>HTMLInputElement</a> {
attribute DOMString <a href=#dom-input-align title=dom-input-align>align</a>;
Expand Down
15 changes: 10 additions & 5 deletions index
Expand Up @@ -93971,16 +93971,16 @@ table {
<code><a href=#the-p-element>p</a></code>, <code><a href=#plaintext>plaintext</a></code>, <code><a href=#the-pre-element>pre</a></code>, <code><a href=#the-ul-element>ul</a></code>, <code><a href=#xmp>xmp</a></code></p>

<p>In <a href=#quirks-mode>quirks mode</a>, any <a href=#concept-rendering-elements-with-margins title=concept-rendering-elements-with-margins>element
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code>td<code>, or
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code><a href=#the-td-element>td</a></code>, or
<code><a href=#the-th-element>th</a></code> element and has no <a href=#concept-rendering-substantial title=concept-rendering-substantial>substantial</a>
previous siblings is expected to have a user-agent level style sheet rule that sets its
'margin-top' property to zero.</code></code></p>
'margin-top' property to zero.</p>

<p>In <a href=#quirks-mode>quirks mode</a>, any <a href=#concept-rendering-elements-with-margins title=concept-rendering-elements-with-margins>element
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code>td<code>, or
with default margins</a> that is the child of a <code><a href=#the-body-element>body</a></code>, <code><a href=#the-td-element>td</a></code>, or
<code><a href=#the-th-element>th</a></code> element, has no <a href=#concept-rendering-substantial title=concept-rendering-substantial>substantial</a>
previous siblings, and is <a href=#concept-rendering-blank title=concept-rendering-blank>blank</a>, is expected to have
a user-agent level style sheet rule that sets its 'margin-bottom' property to zero also.</code></code></p>
a user-agent level style sheet rule that sets its 'margin-bottom' property to zero also.</p>

<p>In <a href=#quirks-mode>quirks mode</a>, any <a href=#concept-rendering-elements-with-margins title=concept-rendering-elements-with-margins>element
with default margins</a> that is the child of a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> element, has
Expand Down Expand Up @@ -96626,6 +96626,7 @@ if (s = prompt('What is your name?')) {

<hr><pre class=idl>partial interface <a href=#htmlimageelement id=HTMLImageElement-partial>HTMLImageElement</a> {
attribute DOMString <a href=#dom-img-name title=dom-img-name>name</a>;
attribute DOMString <a href=#dom-img-lowsrc title=dom-img-lowsrc>lowsrc</a>;
attribute DOMString <a href=#dom-img-align title=dom-img-align>align</a>;
attribute unsigned long <a href=#dom-img-hspace title=dom-img-hspace>hspace</a>;
attribute unsigned long <a href=#dom-img-vspace title=dom-img-vspace>vspace</a>;
Expand All @@ -96644,7 +96645,11 @@ if (s = prompt('What is your name?')) {
content attribute, which for the purposes of reflection is defined
as containing a <a href=#url>URL</a>.</p>

<!-- lowsrc is explicitly not given here, see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10341 -->
<p>The <dfn id=dom-img-lowsrc title=dom-img-lowsrc><code>lowsrc</code></dfn> IDL
attribute of the <code><a href=#the-img-element>img</a></code> element must <a href=#reflect>reflect</a>
the element's <code title=attr-img-lowsrc><a href=#attr-img-lowsrc>lowsrc</a></code>
content attribute, which for the purposes of reflection is defined
as containing a <a href=#url>URL</a>.</p>

<hr><pre class=idl>partial interface <a href=#htmlinputelement id=HTMLInputElement-partial>HTMLInputElement</a> {
attribute DOMString <a href=#dom-input-align title=dom-input-align>align</a>;
Expand Down
11 changes: 8 additions & 3 deletions source
Expand Up @@ -104880,13 +104880,13 @@ table {
<code>p</code>, <code>plaintext</code>, <code>pre</code>, <code>ul</code>, <code>xmp</code></p>

<p>In <span>quirks mode</span>, any <span title="concept-rendering-elements-with-margins">element
with default margins</span> that is the child of a <code>body</code>, <code>td<code>, or
with default margins</span> that is the child of a <code>body</code>, <code>td</code>, or
<code>th</code> element and has no <span title="concept-rendering-substantial">substantial</span>
previous siblings is expected to have a user-agent level style sheet rule that sets its
'margin-top' property to zero.</p>

<p>In <span>quirks mode</span>, any <span title="concept-rendering-elements-with-margins">element
with default margins</span> that is the child of a <code>body</code>, <code>td<code>, or
with default margins</span> that is the child of a <code>body</code>, <code>td</code>, or
<code>th</code> element, has no <span title="concept-rendering-substantial">substantial</span>
previous siblings, and is <span title="concept-rendering-blank">blank</span>, is expected to have
a user-agent level style sheet rule that sets its 'margin-bottom' property to zero also.</p>
Expand Down Expand Up @@ -107930,6 +107930,7 @@ if (s = prompt('What is your name?')) {

<pre class="idl">partial interface <span id="HTMLImageElement-partial">HTMLImageElement</span> {
attribute DOMString <span title="dom-img-name">name</span>;
attribute DOMString <span title="dom-img-lowsrc">lowsrc</span>;
attribute DOMString <span title="dom-img-align">align</span>;
attribute unsigned long <span title="dom-img-hspace">hspace</span>;
attribute unsigned long <span title="dom-img-vspace">vspace</span>;
Expand All @@ -107952,7 +107953,11 @@ if (s = prompt('What is your name?')) {
content attribute, which for the purposes of reflection is defined
as containing a <span>URL</span>.</p>

<!-- lowsrc is explicitly not given here, see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10341 -->
<p>The <dfn title="dom-img-lowsrc"><code>lowsrc</code></dfn> IDL
attribute of the <code>img</code> element must <span>reflect</span>
the element's <code title="attr-img-lowsrc">lowsrc</code>
content attribute, which for the purposes of reflection is defined
as containing a <span>URL</span>.</p>

<hr>

Expand Down

0 comments on commit b7b1df7

Please sign in to comment.