Skip to content

Commit 729fd68

Browse files
committed
Flip order of paragraph and example in Image Fragments so paragraphs are closer to their examples.
1 parent 76017f5 commit 729fd68

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

css3-images/Overview.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -513,19 +513,11 @@ <h3 id=the-image-notation><span class=secno>3.2. </span> Image Fallbacks
513513

514514
<h4 id=image-fragments><span class=secno>3.2.1. </span> Image Fragments</h4>
515515

516-
<p>A portion of an image may be referenced (clipped out and used as a
517-
standalone image) by use of <a
516+
<p>When a URL specified in &lsquo;<code class=css>image()</code>&rsquo;
517+
represents a portion of a resource (e.g. by the use of <a
518518
href="http://www.w3.org/TR/media-frags/#naming-space">media fragment
519-
identifiers</a>. <a href="#MEDIA-FRAGS"
520-
rel=biblioentry>[MEDIA-FRAGS]<!--{{!MEDIA-FRAGS}}--></a>
521-
522-
<p>So that authors can take advantage of CSS's forwards-compatible parsing
523-
rules to provide a fallback for image slices, implementations that support
524-
the &lsquo;<code class=css>image()</code>&rsquo; notation <em>must</em>
525-
support the <code>xywh=#,#,#,#</code> form of media fragment identifiers
526-
for images specified via &lsquo;<code class=css>image()</code>&rsquo;. <a
527-
href="#MEDIA-FRAGS"
528-
rel=biblioentry>[MEDIA-FRAGS]<!--{{!MEDIA-FRAGS}}--></a>
519+
identifiers</a>) that portion is clipped out of its context and used as a
520+
standalone image.
529521

530522
<div class=example>
531523
<p>For example, given the following image* and CSS:</p>
@@ -541,6 +533,14 @@ <h4 id=image-fragments><span class=secno>3.2.1. </span> Image Fragments</h4>
541533
the SVG directly.</small></p>
542534
</div>
543535

536+
<p>So that authors can take advantage of CSS's forwards-compatible parsing
537+
rules to provide a fallback for image slices, implementations that support
538+
the &lsquo;<code class=css>image()</code>&rsquo; notation <em>must</em>
539+
support the <code>xywh=#,#,#,#</code> form of media fragment identifiers
540+
for images specified via &lsquo;<code class=css>image()</code>&rsquo;. <a
541+
href="#MEDIA-FRAGS"
542+
rel=biblioentry>[MEDIA-FRAGS]<!--{{!MEDIA-FRAGS}}--></a>
543+
544544
<div class=example>
545545
<p>Note that image fragments can also be used with the &lsquo;<code
546546
class=css>url()</code>&rsquo; notation. However, a legacy UA that doesn't
@@ -629,7 +629,7 @@ <h4 id=image-fallbacks><span class=secno>3.2.2. </span> Image Fallbacks</h4>
629629

630630
<pre>background-image: image('cat_meme.gif#frame=5', 'lolcat.png');</pre>
631631
</div>
632-
<!-- XXX SVG fragment example with spriting / fallbacks -->
632+
<!-- XXX SVG fragment example with spriting / fallbacks (once SVG can provide this) -->
633633

634634
<h4 id=solid-color-images><span class=secno>3.2.3. </span> Solid-color
635635
Images</h4>

css3-images/Overview.src.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,6 @@ <h4>
214214
(e.g. by the use of <a href="http://www.w3.org/TR/media-frags/#naming-space">media fragment identifiers</a>)
215215
that portion is clipped out of its context and used as a standalone image.
216216

217-
<p>So that authors can take advantage of CSS's forwards-compatible parsing
218-
rules to provide a fallback for image slices, implementations that support
219-
the ''image()'' notation <em>must</em> support the <code>xywh=#,#,#,#</code>
220-
form of media fragment identifiers for images specified via ''image()''. [[!MEDIA-FRAGS]]</p>
221-
222217
<div class="example">
223218
<p>For example, given the following image* and CSS:</p>
224219

@@ -234,6 +229,11 @@ <h4>
234229
<p><small>* SVG-in-&lt;img> support required. Click the picture to view the SVG directly.</small></p>
235230
</div>
236231

232+
<p>So that authors can take advantage of CSS's forwards-compatible parsing
233+
rules to provide a fallback for image slices, implementations that support
234+
the ''image()'' notation <em>must</em> support the <code>xywh=#,#,#,#</code>
235+
form of media fragment identifiers for images specified via ''image()''. [[!MEDIA-FRAGS]]</p>
236+
237237
<div class='example'>
238238
<p>Note that image fragments can also be used with the ''url()'' notation. However, a legacy UA that doesn't understand the media fragments notation will ignore the fragment and simply display the entirety of the image.</p>
239239

0 commit comments

Comments
 (0)