Skip to content

Commit d6ddb83

Browse files
author
Marcos Caceres
committed
Fixed up content model. Added WebIDL to conformance section.
1 parent f0dc0ca commit d6ddb83

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

ResponsiveImages.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<!DOCTYPE html>
32
<!-- saved from url=(0014)about:internet -->
43
<html>
@@ -66,6 +65,8 @@ <h1>Introduction</h1>
6665

6766
<section id="conformance">
6867
<p>This specification describes the conformance criteria for <dfn title="user agent">user agents</dfn> (relevant to implementors) and <dfn title="document">documents</dfn> (relevant to authors and authoring tool implementors).</p>
68+
<p>Implementations that use ECMAScript to expose the APIs defined in this specification MUST implement them in a manner consistent with
69+
the ECMAScript Bindings defined in the Web IDL specification [[!WEBIDL]].</p>
6970
<section id="dependencies">
7071
<h3>Definitions</h3>
7172
<p>The <dfn><a href="http://www.w3.org/TR/html5/the-img-element.html#the-img-element">img element</a></dfn>,
@@ -81,9 +82,7 @@ <h3>Definitions</h3>
8182
<p>The <dfn><a href="http://dev.w3.org/csswg/css4-images/#image-set-notation">image-set notation</a></dfn>
8283
microsyntax is defined by the<cite> CSS Image Values and Replaced Content Module Level 4 Specification</cite> [[!CSS4-IMAGES]].</p>
8384
<p>The <dfn><a href="http://www.w3.org/TR/html-alt-techniques/#secm1">techniques for providing useful text alternatives for <code>img</code> elements</a></dfn> are defined by the <cite>HTML5: Techniques for providing useful text alternatives</cite> Specification [[!ALT-TECHNIQUES]].</p>
84-
<!--dt>WebIDL</dt>
85-
<dd>Implementations that use ECMAScript to expose the APIs defined in this specification MUST implement them in a manner consistent with
86-
the ECMAScript Bindings defined in the Web IDL specification [[!WEBIDL]].</dd--> </section><!-- / dependencies -->
85+
8786
</section><!-- /conformance -->
8887

8988
<section>
@@ -93,44 +92,47 @@ <h1>The <code>picture</code> element</h1>
9392
<dd><a href="http://dev.w3.org/html5/spec/single-page.html#flow-content-1">Flow content</a>.</dd>
9493
<dd><a href="http://dev.w3.org/html5/spec/single-page.html#phrasing-content-1">Phrasing content</a>.</dd>
9594
<dd><a href="http://dev.w3.org/html5/spec/single-page.html#embedded-content-2">Embedded content</a>.</dd>
96-
<dd>&nbsp;</dd>
95+
9796
<dd><a href="http://dev.w3.org/html5/spec/single-page.html#palpable-content-0">Palpable content</a>.</dd>
9897
<dt><a href="http://dev.w3.org/html5/spec/single-page.html#element-dfn-contexts" title="element-dfn-contexts">Contexts in which this element can be used</a>:</dt>
9998
<dd>Where <a href="http://dev.w3.org/html5/spec/single-page.html#embedded-content-2">embedded content</a> is expected.</dd>
10099
<dt><a href="http://dev.w3.org/html5/spec/single-page.html#element-dfn-content-model" title="element-dfn-content-model">Content model</a>:</dt>
101-
<dd>Zero or more <code>source</code> elements</dd>
102-
<dt>&nbsp;</dt>
103-
<dd>Zero or more <code>img</code> elements.</dd>
100+
<dd>If the element has a <a href="http://dev.w3.org/html5/spec/single-page.html#attr-media-src">src</a> attribute:  <a href="http://dev.w3.org/html5/spec/single-page.html#transparent">transparent</a>, and no <code>source</code> descendants.</dd>
101+
<dd>If the element has no <a href="http://dev.w3.org/html5/spec/single-page.html#attr-media-src">src</a> attribute: Zero or more <code>source</code> elements</dd>
102+
103+
<dd>Zero or one <code>img</code> element as <a>fallback content</a>.</dd>
104104
<dt><a href="http://dev.w3.org/html5/spec/single-page.html#element-dfn-attributes" title="element-dfn-attributes">Content attributes</a>:</dt>
105105
<dd><a href="http://dev.w3.org/html5/spec/single-page.html#global-attributes">Global attributes</a></dd>
106106
<dd>src</dd>
107107
<dd>width</dd>
108108
<dd>height </dd>
109109
<dd>crossorigin</dd>
110-
<dd>&nbsp;</dd>
111110
<dt><a href="http://dev.w3.org/html5/spec/single-page.html#attr-dim-height"></a></dt>
112111
<dt><a href="http://dev.w3.org/html5/spec/single-page.html#element-dfn-dom" title="element-dfn-dom">DOM interface</a>:</dt>
113112
<dd>
114113
<pre>
115-
interface <dfn>HTMLPictureElement</dfn> : HTMLElement {
114+
interface <dfn>HTMLPictureElement</dfn> : HTMLImageElement {
116115

117116
};</pre>
118117
</dd>
119118
</dl>
120119

121-
<p>The <code><dfn>picture</dfn></code> element represents an image.</p>
120+
<p>The <code><dfn>picture</dfn></code> element used for displaying an image from a range of sources.</p>
121+
<p>The image given by the src attributes is the embedded content; the value of the alt attribute provides equivalent content for those who cannot process images or who have image loading disabled. </p>
122+
<p>For user agents that don't support picture, an author can provide an img element as fallback content. User agents SHOULD NOT show this content to the user: it is intended for Web browsers which do not support <code>picture</code>, so that a legacy <code>img</code> element can be shown.</p>
122123
<p>Sample picture element markup:</p>
123124

124125
<pre class="example">&lt;picture src=&quot;cat.png&quot;&gt;
126+
125127
&lt;/picture&gt;</pre>
126128

127129
<section>
128130
<p>The src attribute. <a>valid non-empty URL potentially surrounded by spaces</a> The address of the <a>media resource</a>.</p>
129131
<p>type = MIME type The type of the <a>media resource</a> (used for helping the UA determine, before fetching this <a>media resource</a>, if it can play it). A string that identifies a valid MIME <a>media type</a>. </p>
130132
<p>media = <a>valid media query</a> The intended media type of the <a>media resource</a> (used for helping the UA determine, before fetching this <a>media resource</a>, if it is useful to the user).</p>
131133
<p><a href="#srcset-attribute">srcset</a> Media source list A comma-separated list of <a>valid non-empty URL potentially surrounded by spaces</a> referring to alternate <a>media resource</a>s for a single image at different resolutions.</p>
132-
<h3>Differeces from img element</h3>
133-
<p>Unlike picture, the <code>img</code> element is limited to a single image resoure, but cases where an author need to define different image sources depending on the factors such as the design, size resolution, and display density. The most suitable image source may be an image sized appropriately for the display size or pixel density. Or the most suitable image source may be a different version of an image that has been modified by the author to be suitable for a particular use (see: <a>art direction</a> use case)</p>
134+
<h3>Differeces from <code>img</code> element</h3>
135+
<p>Unlike the <code>picture</code> element, the <code>img</code> element is limited to a single image resoure, but cases where an author need to define different image sources depending on the factors such as the design, size resolution, and display density. The most suitable image source may be an image sized appropriately for the display size or pixel density. Or the most suitable image source may be a different version of an image that has been modified by the author to be suitable for a particular use (see: <a>art direction</a> use case)</p>
134136
</section><!-- / picture permitted attributes -->
135137

136138
<section>

0 commit comments

Comments
 (0)