Skip to content

Commit 5f06c9e

Browse files
committed
Removed paragraph talking about UAs skipping over image() arguments based on extension.
Reworked paragraph describing the final argument of image().
1 parent 76edc4a commit 5f06c9e

2 files changed

Lines changed: 10 additions & 31 deletions

File tree

css3-images/Overview.html

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,12 @@ <h3 id=image-notation><span class=secno>4.2. </span>Image Fallbacks: the
415415
pixel rounding" is the right terminology here... basically we want to
416416
avoid blurry images.</span></p>
417417

418-
<p>The optional color at the end of the list is the <dfn
419-
id=fallback-color>fallback color</dfn>. It is used if, and only if, none
420-
of the images can be loaded and displayed (e.g. because they are in
421-
unsupported formats, or cannot be found, or are corrupted in some way,
422-
or because image loading is disabled in the UA). It is treated as a
423-
single-color image with no intrinsic dimensions.
418+
<p>The final argument may be a color or generated image, to serve as an
419+
ultimate fallback if none of the preceeding <a
420+
href="#ltimage-decl"><b>&lt;image-decl></b></a>s can be used. If it is a
421+
color, the <a href="#ltimage-list"><b>&lt;image-list></b></a> must
422+
represent a single-color image of that color with no <a
423+
href="#intrinsic-dimensions"><b>intrinsic dimensions</b></a>.</p>
424424

425425
<div class=example>
426426
<p>For example, the rule below would tell the UA to load &lsquo;<code
@@ -441,17 +441,6 @@ <h3 id=image-notation><span class=secno>4.2. </span>Image Fallbacks: the
441441
As with any image, this fallback will be painted over the &lsquo;<code
442442
class=property>background-color</code>&rsquo; (if any).
443443
</div>
444-
445-
<p>If the URL for the image ends in a file extension (a period followed
446-
by letters) of four ascii letters ([a-zA-Z]) or less, then the UA
447-
<em>may</em> skip trying to load images whose file extension matches an
448-
image format it knows it does not support. For example, a UA that knows
449-
it supports JPEG and GIF, but expects to encounter many PNG and SVG
450-
images may choose to skip over images with filenames ending in
451-
&lsquo;<code class=css>.png</code>&rsquo; or &lsquo;<code
452-
class=css>.svg</code>&rsquo; without loading them to check their MIME
453-
type. However it must not skip over images with filenames ending in
454-
extensions it doesn't recognize.
455444
</div>
456445

457446
<div>

css3-images/Overview.src.html

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,10 @@ <h3 id="image-notation">Image Fallbacks: the ''image()'' notation</h3>
204204
"no pixel rounding" is the right terminology here... basically we want to
205205
avoid blurry images.</span></p>
206206

207-
<p>The optional color at the end of the list is the <dfn>fallback color</dfn>.
208-
It is used if, and only if, none of the images can be loaded and displayed
209-
(e.g. because they are in unsupported formats, or cannot be found, or are
210-
corrupted in some way, or because image loading is disabled in the UA). It
211-
is treated as a single-color image with no intrinsic dimensions.
207+
<p>The final argument may be a color or generated image, to serve as an
208+
ultimate fallback if none of the preceeding <b>&lt;image-decl></b>s can be used.
209+
If it is a color, the <b>&lt;image-list></b> must represent a single-color
210+
image of that color with no <b>intrinsic dimensions</b>.</p>
212211

213212
<div class="example">
214213
<p>For example, the rule below would tell the UA to load ''wavy.svg'' if
@@ -223,15 +222,6 @@ <h3 id="image-notation">Image Fallbacks: the ''image()'' notation</h3>
223222
the background will be painted blue. As with any image, this fallback
224223
will be painted over the 'background-color' (if any).
225224
</div>
226-
227-
<p>If the URL for the image ends in a file extension (a period followed by
228-
letters) of four ascii letters ([a-zA-Z]) or less, then the UA <em>may</em>
229-
skip trying to load images whose file extension matches an image format it
230-
knows it does not support. For example, a UA that knows it supports JPEG and
231-
GIF, but expects to encounter many PNG and SVG images may choose to skip over
232-
images with filenames ending in '.png' or '.svg' without loading them to
233-
check their MIME type. However it must not skip over images with filenames
234-
ending in extensions it doesn't recognize.
235225
</div>
236226

237227
<div>

0 commit comments

Comments
 (0)