Skip to content

Commit 3847a80

Browse files
committed
Add issue about removing the fallback behavior from image-set().
1 parent 3fdfb6f commit 3847a80

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

css4-images/Overview.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,14 @@ <h3 id=image-set-notation><span class=secno>4.3. </span> Resolution
874874
dimensions</i></a>; otherwise, the function represents an <a
875875
href="#invalid-image"><i>invalid image</i></a>.
876876

877+
<p class=issue> It's been suggested that we don't need the fallback
878+
behavior here, and should instead just choose one resource and stick with
879+
it, allowing authors to next image() if they want to do fallback. That's
880+
not strictly the same, and it's more verbose, but it may be enough. If we
881+
remove the fallback behavior, we can probably kill the &lt;color> as well,
882+
unless we think it's important to avoid the verbosity of a wrapping
883+
<code class=css>image(image-set(...), blue)</code>’.
884+
877885
<p> If an <a href="#image-set-decl-type"><i>&lt;image-set-decl></i></a> is
878886
chosen and successfully loaded, the associated <a
879887
href="#resolution-type"><i>&lt;resolution></i></a> is the image's <a

css4-images/Overview.src.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,17 @@ <h3 id='image-set-notation'>
584584
the function represents a solid-color image of the given color with no <i>intrinsic dimensions</i>;
585585
otherwise, the function represents an <i>invalid image</i>.
586586

587+
<p class='issue'>
588+
It's been suggested that we don't need the fallback behavior here,
589+
and should instead just choose one resource and stick with it,
590+
allowing authors to next image() if they want to do fallback.
591+
That's not strictly the same,
592+
and it's more verbose,
593+
but it may be enough.
594+
If we remove the fallback behavior,
595+
we can probably kill the &lt;color> as well,
596+
unless we think it's important to avoid the verbosity of a wrapping ''image(image-set(...), blue)''.
597+
587598
<p>
588599
If an <i>&lt;image-set-decl></i> is chosen and successfully loaded,
589600
the associated <i>&lt;resolution></i> is the image's <i>intrinsic resolution</i>.

0 commit comments

Comments
 (0)