Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 4941a4d

Browse files
author
Mike Engel
committed
Merge branch 'master' into 2.3
2 parents 8b33aee + 8a1971b commit 4941a4d

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

examples/demo-01.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h3>An img with "srcset" and sizes" attributes:</h3>
2727
<p>Here's how that renders in the browser. Feel free to resize to see it change.</p>
2828

2929
<img sizes="(min-width: 40em) 80vw, 100vw"
30-
srcset="../examples/images/small.jpg 375w, ../examples/images/large.jpg 480w, ../examples/images/extralarge.jpg 768w" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
30+
srcset="../examples/images/medium.jpg 375w, ../examples/images/large.jpg 480w, ../examples/images/extralarge.jpg 768w" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
3131

3232
</body>
3333
</html>

examples/demo-04.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h3 id="types"><code>media</code> example with one webp source qualified with a
2424
<p>
2525
Note: Picturefill can support SVG, WebP, JPEG-XR, JPEG-2000 and APNG types on any source element, and will disregard a <code>source</code> if its type is not supported in a particular environment.
2626
<strong>This option will only work if picturefill is built by setting the <code>support-types</code> grunt task correctly when building picturefill.</strong>
27-
For example, to support all these formats, build picturefill with this grunt task:</strong></p>
27+
For example, to support all these formats, build picturefill with this grunt task:</p>
2828
<pre><code>grunt support-types:svg:webp:jxr:jp2:apng</code></pre>
2929

3030
<p>

index.html

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ <h3 id="img-sizes">Using <code>img</code> with <code>srcset</code> &amp; <code>s
104104

105105
<h3>An img with "srcset" and sizes" attributes:</h3>
106106
<pre><code>&lt;img sizes=&quot;(min-width: 40em) 80vw, 100vw&quot;
107-
srcset=&quot;examples/images/medium.jpg 375w, examples/images/medium.jpg 480w, examples/images/large.jpg 768w&quot; alt=&quot;A giant stone face at The Bayon temple in Angkor Thom, Cambodia&quot;&gt;
107+
srcset=&quot;examples/images/medium.jpg 375w, examples/images/large.jpg 480w, examples/images/extralarge.jpg 768w&quot; alt=&quot;A giant stone face at The Bayon temple in Angkor Thom, Cambodia&quot;&gt;
108108
</code></pre>
109109

110110
<p>Here's how that renders in the browser. Feel free to resize to see it change.</p>
111111

112112
<img sizes="(min-width: 40em) 80vw, 100vw"
113-
srcset="examples/images/medium.jpg 375w, examples/images/medium.jpg 480w, examples/images/large.jpg 768w" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
113+
srcset="examples/images/medium.jpg 375w, examples/images/large.jpg 480w, examples/images/extralarge.jpg 768w" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
114114

115115
<p><a href="examples/demo-01.html">View standalone demo</a></p>
116116

@@ -179,7 +179,8 @@ <h3 id="types"><code>media</code> example with one webp source qualified with a
179179
<p>
180180
Note: Picturefill can support SVG, WebP, JPEG-XR, JPEG-2000 and APNG types on any source element, and will disregard a <code>source</code> if its type is not supported in a particular environment.
181181
<strong>This option will only work if picturefill is built by setting the <code>support-types</code> grunt task correctly when building picturefill.</strong>
182-
For example, to support all these formats, build picturefill with this grunt task:</strong></p>
182+
For example, to support all these formats, build picturefill with this grunt task:
183+
</p>
183184
<pre><code>grunt support-types:jxr:jp2:apng</code></pre>
184185

185186
<p>
@@ -196,26 +197,26 @@ <h3 id="types"><code>media</code> example with one webp source qualified with a
196197

197198
<pre><code>&lt;picture&gt;
198199
&lt;!--[if IE 9]&gt;&lt;video style="display: none;"&gt;&lt;![endif]--&gt;
199-
&lt;source srcset="../examples/images/large.webp" media="(min-width: 800px)" type="image/webp"&gt;
200-
&lt;source srcset="../examples/images/large.jxr" media="(min-width: 800px)" type="image/vnd.ms-photo"&gt;
201-
&lt;source srcset="../examples/images/large.jp2" media="(min-width: 800px)" type="image/jp2"&gt;
202-
&lt;source srcset="../examples/images/large.jpg" media="(min-width: 800px)"&gt;
203-
&lt;source srcset="../examples/images/medium.jpg" media="(min-width: 400px)"&gt;
200+
&lt;source srcset="examples/images/large.webp" media="(min-width: 800px)" type="image/webp"&gt;
201+
&lt;source srcset="examples/images/large.jxr" media="(min-width: 800px)" type="image/vnd.ms-photo"&gt;
202+
&lt;source srcset="examples/images/large.jp2" media="(min-width: 800px)" type="image/jp2"&gt;
203+
&lt;source srcset="examples/images/large.jpg" media="(min-width: 800px)"&gt;
204+
&lt;source srcset="examples/images/medium.jpg" media="(min-width: 400px)"&gt;
204205
&lt;!--[if IE 9]&gt;&lt;/video&gt;&lt;![endif]--&gt;
205-
&lt;img srcset="../examples/images/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"&gt;
206+
&lt;img srcset="examples/images/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"&gt;
206207
&lt;/picture&gt;
207208

208209
</code></pre>
209210

210211
<picture>
211212
<!--[if IE 9]><video style="display: none;"><![endif]-->
212-
<source srcset="../examples/images/large.webp" media="(min-width: 800px)" type="image/webp">
213-
<source srcset="../examples/images/large.jxr" media="(min-width: 800px)" type="image/vnd.ms-photo">
214-
<source srcset="../examples/images/large.jp2" media="(min-width: 800px)" type="image/jp2">
215-
<source srcset="../examples/images/large.jpg" media="(min-width: 800px)">
216-
<source srcset="../examples/images/medium.jpg" media="(min-width: 400px)">
213+
<source srcset="examples/images/large.webp" media="(min-width: 800px)" type="image/webp">
214+
<source srcset="examples/images/large.jxr" media="(min-width: 800px)" type="image/vnd.ms-photo">
215+
<source srcset="examples/images/large.jp2" media="(min-width: 800px)" type="image/jp2">
216+
<source srcset="examples/images/large.jpg" media="(min-width: 800px)">
217+
<source srcset="examples/images/medium.jpg" media="(min-width: 400px)">
217218
<!--[if IE 9]></video><![endif]-->
218-
<img srcset="../examples/images/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
219+
<img srcset="examples/images/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
219220
</picture>
220221

221222
<p><a href="examples/demo-04.html">View standalone demo</a></p>

0 commit comments

Comments
 (0)