1515
1616 < h1 > CSS Image Values Module Level 3</ h1 >
1717
18- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 9 June 2009</ h2 >
18+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 24 June 2009</ h2 >
1919
2020 < dl >
2121 < dt > This version:</ dt >
22- <!-- <dd><a href="http://www.w3.org/TR/2009/CR-css3-images-20090609 /">http://www.w3.org/TR/2009/CR-css3-images-20090609 /</a></dd> -->
22+ <!-- <dd><a href="http://www.w3.org/TR/2009/CR-css3-images-20090624 /">http://www.w3.org/TR/2009/CR-css3-images-20090624 /</a></dd> -->
2323
2424 < dd > < a
2525 href ="http://dev.w3.org/csswg/css3-images/ "> http://dev.w3.org/csswg/css3-images/</ a >
@@ -104,9 +104,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
104104 < li > < a href ="#image "> < span class =secno > 3 </ span > The <image> value
105105 type</ a >
106106
107- < li > < a href ="##url "> < span class =secno > 4 </ span > Simple Image References and
108- Image Slices: the ‘< code class =css > url()</ code > ’ notation</ a >
109-
107+ < li > < a href ="##url "> < span class =secno > 4 </ span > Image References and Image
108+ Slices: the ‘< code class =css > url()</ code > ’ notation</ a >
110109
111110 < li > < a href ="##image "> < span class =secno > 5 </ span > Image Fallbacks: the
112111 ‘< code class =css > image()</ code > ’ notation</ a >
@@ -206,8 +205,8 @@ <h2 id=image><span class=secno>3 </span>The <image> value type</h2>
206205 rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > .
207206
208207 < div >
209- < h2 id ="#url "> < span class =secno > 4 </ span > Simple Image References and
210- Image Slices: the ‘< code class =css > url()</ code > ’ notation</ h2 >
208+ < h2 id ="#url "> < span class =secno > 4 </ span > Image References and Image
209+ Slices: the ‘< code class =css > url()</ code > ’ notation</ h2 >
211210
212211 < p > The simplest way to indicate an image is to reference an image file by
213212 URI. This is done with the < a
@@ -288,9 +287,22 @@ <h2 id="#image"><span class=secno>5 </span>Image Fallbacks: the
288287 single-color image with no intrinsic dimensions.
289288
290289 < div class =example >
291- < p > Some examples:</ p >
290+ < p > For example, the rule below would tell the UA to load ‘< code
291+ class =css > wavy.svg</ code > ’ if it can; failing that to load
292+ ‘< code class =css > wavy.png</ code > ’ and display it at 150dpi;
293+ failing that to display ‘< code class =css > wavy.gif</ code > ’;
294+ and finally, if none of the images can be loaded and displayed, to use
295+ the color ‘< code class =css > blue</ code > ’ to create a
296+ dimensionless background image.
292297
293298 < pre > background-image: image(wavy.svg, 'wavy.png' 150dpi, "wavy.gif" or blue);</ pre >
299+
300+ < p > The ‘< code class =property > background-image</ code > ’
301+ property specifies that dimensionless images must stretch to cover the
302+ entire background positioning area [[CSS3BACKGROUND]], so if none of
303+ the specified images can be displayed the background will be painted
304+ blue. As with any image, this fallback will be painted over the
305+ ‘< code class =property > background-color</ code > ’ (if any).
294306 </ div >
295307
296308 < p > If the URL for the image ends in a file extension (a period followed
@@ -308,6 +320,27 @@ <h2 id="#image"><span class=secno>5 </span>Image Fallbacks: the
308320 < div >
309321 < h2 id =image-sprites > < span class =secno > 6 </ span > Image Sprites</ h2 >
310322
323+ < p > The image sprites syntax is different from image slices noted above.
324+ Image slice syntax allows you to specify the coordinates of a region in
325+ the image and use that as a standalone image, but all the coordinates
326+ must be specified inline. This is great for one-off cutouts, but becomes
327+ unnecessarily verbose when the slices fit into a grid structure. The
328+ goal of this section is to define a syntax that:
329+
330+ < ul >
331+ < li > Makes it easy to specify an image slice and swap it out in later
332+ subclass or :hover rules.
333+
334+ < li > Makes it easy to maintain a sprite image, so that adding or shifting
335+ sections of the image don't require crawling through and modifying the
336+ entire style sheet.
337+
338+ < li > Has straightforward handling of strict grids, but can also handle
339+ more irregular sprite organization.
340+
341+ < li > (Any other use cases/requirements?)
342+ </ ul >
343+
311344 < div class =issue >
312345 < p > As yet unwritten. Discussions/proposals include:</ p >
313346
0 commit comments