You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Elements as Images: the ''element()'' notation</h3>
678
677
679
678
<p>The ''element()'' function allows an author to use an element in the document as an image. As the referenced element changes appearance, the image changes as well. This can be used, for example, to create live previews of the next/previous slide in a slideshow, or to reference a canvas element for a fancy generated gradient or even an animated background.</p>
@@ -1970,8 +1969,8 @@ <h3 id=object-sizing-examples><span class=secno>5.4. </span> Examples of
Image References and Image Slices: the ''<url>'' type and ''url()'' notation</h3>
174
174
175
175
<p>The simplest way to indicate an image is to reference an image file by URL. This can be done with the <ahref="http://www.w3.org/TR/CSS21/syndata.html#uri">''url()'' notation</a>, defined in [[!CSS21]].
Image Fallbacks and Annotations: the ''image()'' notation</h3>
190
190
191
191
<p>The ''image()'' function allows an author to:</p>
@@ -207,7 +207,7 @@ <h3 id="the-image-notation">
207
207
208
208
<p>Each ''<string>'' or ''<url>'' inside ''image()'' represents an image, just as if the <ahref="#url">''url()'' notation</a> had been used. As usual for URLs in CSS, relative URLs are resolved to an absolute URL (as described in Values & Units [[!CSS3VAL]]) when a specified ''image()'' value is computed.</p>
209
209
210
-
<h4>
210
+
<h4id="image-fragments">
211
211
Image Fragments</h4>
212
212
213
213
<p>When a URL specified in ''image()'' represents a portion of a resource
@@ -244,7 +244,7 @@ <h4>
244
244
<!-- -->background-image: image('sprites.png#xywh=10,30,60,20'); /* new UAs */</pre>
245
245
</div>
246
246
247
-
<h4>
247
+
<h4id="image-fallbacks">
248
248
Image Fallbacks</h4>
249
249
250
250
<p>Multiple ''<image-decl>s'' can be given separated by commas, in which case the function represents the first image that's not an <i>invalid image</i>. The final argument can specify a ''<color>'' to serve as an ultimate fallback; this can be used, e.g. for 'background-image', to ensure adequate contrast if none of the preceding ''<image-decl>s'' can be used. If the final argument is a ''<color>'', it represents a solid-color image of the given color with no <i>intrinsic dimensions</i>. If all of the provided ''<image-decl>s'' are <i>invalid images</i> and a fallback color was not provided as the last argument, the entire ''image()'' function must be treated as an <i>invalid image</i>.
@@ -281,7 +281,7 @@ <h4>
281
281
282
282
<!-- XXX SVG fragment example with spriting / fallbacks (once SVG can provide this) -->
Using Elements as Images: the ''element()'' notation</h3>
324
324
325
325
<p>The ''element()'' function allows an author to use an element in the document as an image. As the referenced element changes appearance, the image changes as well. This can be used, for example, to create live previews of the next/previous slide in a slideshow, or to reference a canvas element for a fancy generated gradient or even an animated background.</p>
Orienting an Image on the Page: the 'image-orientation' property</h3>
1498
1498
1499
1499
<p>If a picture is taken with a camera turned on its side, or a document isn't positioned correctly within a scanner, the resultant image may be "sideways" or even upside-down. The 'image-orientation' property provides a way to apply an "out-of-band" rotation to image source data to correctly orient an image.</p>
0 commit comments