@@ -208,12 +208,18 @@ <h3 id="url">
208208 [[!MEDIA-FRAGS]]
209209
210210 < div class ="example ">
211- < p > For example,</ p >
211+ < p > For example, given the following image* and CSS: </ p >
212212
213- < pre > background-image: url('sprites.png#xywh=10,30,60,20')</ pre >
213+ < a href ="sprites.svg ">
214+ < img src ="sprites.svg " height ="20 " width ="180 " alt ="[9 circles, with 0 to 8 eighths filled in] ">
215+ </ a >
214216
215- < p > uses the 60 pixel by 20 pixel rectangle of < code > sprites.png</ code > beginning
216- at the point 10 pixels in from the left, 30 pixels down from the top.
217+ < pre > background-image: url('sprites.svg#xywh=40,0,20,20')</ pre >
218+
219+ < p > ...the background of the element will be the portion of the image that starts at (40px,0px)
220+ and is 20px wide and tall, which is just the circle with a quarter filled in.</ p >
221+
222+ < p > < small > * SVG-in-<img> support required. Click the picture to view the SVG directly.</ small > </ p >
217223 </ div >
218224
219225 < p class ="note "> Note however that a UA that doesn't understand the media
@@ -226,11 +232,11 @@ <h3 id="url">
226232 < div class ="example ">
227233 < p > In the example below, the ''image()'' notation is used together with
228234 the media fragment syntax, so that UAs that don't support media fragments
229- fail to parse the second declaration and use the first.
235+ fail to parse the second declaration and use the first.</ p >
236+
230237 < pre >
231238<!-- --> background-image: url('swirl.png'); /* old UAs */
232239<!-- --> background-image: image('sprites.png#xywh=10,30,60,20'); /* new UAs */</ pre >
233- </ div >
234240 </ div >
235241
236242<!-- ====================================================================== -->
0 commit comments