Skip to content

Commit a89bc1c

Browse files
committed
Add dppx example so people can see its use (instead of -foo-device-pixel-ratio)
1 parent b556c65 commit a89bc1c

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

css3-images/Overview.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,16 @@ <h2 id=resolution-units><span class=secno>2. </span> Resolution Units: the
393393
class=css>96dpi</code>&rsquo;. This corresponds to the default resolution
394394
of images displayed in CSS: see &lsquo;<a href="#image-resolution0"><code
395395
class=property>image-resolution</code></a>&rsquo;.
396-
<!-- ====================================================================== -->
397-
396+
397+
<div class=example>
398+
<p>The following @media rule uses Media Queries <a href="#MEDIAQ"
399+
rel=biblioentry>[MEDIAQ]<!--{{MEDIAQ}}--></a> to assign some special
400+
style rules to devices that use two or more device pixels per CSS
401+
&lsquo;<code class=css>px</code>&rsquo; unit:
402+
403+
<pre>@media (min-resolution: 2dppx) { ... }</pre>
404+
</div>
405+
<!-- ====================================================================== -->
398406

399407
<h2 id=image><span class=secno>3. </span> Image Values: the &lt;image> type</h2>
400408

css3-images/Overview.src.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ <h2 id='resolution-units'>
146146
CSS ''px'', ''1dppx'' is equivalent to ''96dpi''. This corresponds to
147147
the default resolution of images displayed in CSS: see 'image-resolution'.
148148

149+
<div class="example">
150+
<p>The following @media rule uses Media Queries [[MEDIAQ]] to assign
151+
some special style rules to devices that use two or more device pixels
152+
per CSS ''px'' unit:
153+
<pre>@media (min-resolution: 2dppx) { ... }</pre>
154+
</div>
155+
149156
<!-- ====================================================================== -->
150157

151158
<h2 id="image">

0 commit comments

Comments
 (0)