Skip to content

Commit 7fffcc6

Browse files
committed
Add issue about dropping <resolution> from image-set() in favor of just the 'x' unit.
1 parent 3847a80 commit 7fffcc6

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

css4-images/Overview.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,19 @@ <h3 id=image-set-notation><span class=secno>4.3. </span> Resolution
887887
href="#resolution-type"><i>&lt;resolution></i></a> is the image's <a
888888
href="#intrinsic-resolution"><i>intrinsic resolution</i></a>.
889889

890+
<p class=issue> It's been suggested that we don't need a full
891+
&lt;resolution> here, and should instead just use the ‘<a
892+
href="#x"><code class=css>x</code></a>’ unit by itself. This seems silly
893+
to me, since the ‘<a href="#x"><code class=css>x</code></a>’ unit is
894+
just an easier synonym for ‘<a href="#dppx"><code
895+
class=css>dppx</code></a>’, but thoughts? Beyond theoretical purity
896+
considerations, it seems that ‘<a href="#dpi"><code
897+
class=css>dpi</code></a>’ can be useful for use-cases involving
898+
printing, where dpi is actually used to talk about images and having an
899+
integer correlation between dots and pixels is either unnecessary or
900+
strictly non-sensical (as the screening resolution can depend on the
901+
colors being used).
902+
890903
<div class=example>
891904
<p> This example shows how to use ‘<code class=css>image-set()</code>
892905
to provide an image in three versions: a "normal" version, a "high-res"

css4-images/Overview.src.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,19 @@ <h3 id='image-set-notation'>
599599
If an <i>&lt;image-set-decl></i> is chosen and successfully loaded,
600600
the associated <i>&lt;resolution></i> is the image's <i>intrinsic resolution</i>.
601601

602+
<p class='issue'>
603+
It's been suggested that we don't need a full &lt;resolution> here,
604+
and should instead just use the ''x'' unit by itself.
605+
This seems silly to me,
606+
since the ''x'' unit is just an easier synonym for ''dppx'',
607+
but thoughts?
608+
Beyond theoretical purity considerations,
609+
it seems that ''dpi'' can be useful for use-cases involving printing,
610+
where dpi is actually used to talk about images
611+
and having an integer correlation between dots and pixels
612+
is either unnecessary or strictly non-sensical
613+
(as the screening resolution can depend on the colors being used).
614+
602615
<div class='example'>
603616
<p>
604617
This example shows how to use ''image-set()'' to provide an image in three versions:

0 commit comments

Comments
 (0)