W3C home > Mailing lists > Public > public-css-commits@w3.org > February 2012

csswg/css3-values Overview.html,1.156,1.157 Overview.src.html,1.159,1.160

From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 07 Feb 2012 22:59:53 +0000
To: public-css-commits@w3.org
Message-Id: <E1Ruu0v-0003QW-Ab@lionel-hutz.w3.org>
Update of /sources/public/csswg/css3-values
In directory hutz:/tmp/cvs-serv12967

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Add the resolution unit, since it's used in two specs (MQ and Images)

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-values/Overview.html,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -d -r1.156 -r1.157
--- Overview.html	5 Jan 2012 19:38:38 -0000	1.156
+++ Overview.html	7 Feb 2012 22:59:50 -0000	1.157
@@ -26,13 +26,14 @@
 
    <h1>CSS Values and Units Module Level 3</h1>
 
-   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 January 2012</h2>
+   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 February
+    2012</h2>
 
    <dl>
     <dt>This version:
 
     <dd><a
-     href="http://www.w3.org/TR/2012/ED-css3-values-20120105/">http://www.w3.org/TR/2012/ED-css3-values-20120105/</a>
+     href="http://www.w3.org/TR/2012/ED-css3-values-20120207/">http://www.w3.org/TR/2012/ED-css3-values-20120207/</a>
 
     <dt>Latest version:
 
@@ -254,11 +255,15 @@
       class=css>s</code>&rsquo;, &lsquo;<code class=css>ms</code>&rsquo;
       units</a>
 
-     <li><a href="#frequencies-the-ltfrequencygt-type-and-h"><span
-      class=secno>6.3. </span>Frequencies: the &lsquo;<code
-      class=css>&lt;frequency&gt;</code>&rsquo; type and &lsquo;<code
-      class=css>Hz</code>&rsquo;, &lsquo;<code class=css>kHz</code>&rsquo;
-      units</a>
+     <li><a href="#frequency"><span class=secno>6.3. </span> Frequencies: the
+      &lsquo;<code class=css>&lt;frequency&gt;</code>&rsquo; type and
+      &lsquo;<code class=css>Hz</code>&rsquo;, &lsquo;<code
+      class=css>kHz</code>&rsquo; units</a>
+
+     <li><a href="#resolution"><span class=secno>6.4. </span> Resolutions:
+      the &lsquo;<code class=css>dpi</code>&rsquo;, &lsquo;<code
+      class=css>dpcm</code>&rsquo;, and &lsquo;<code
+      class=css>dppx</code>&rsquo; units</a>
     </ul>
 
    <li><a href="#defined-elsewhere"><span class=secno>7. </span> Data Types
@@ -1174,8 +1179,8 @@
    outside the allowed range, the declaration is invalid and must be <a
    href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
 
-  <h3 id=frequencies-the-ltfrequencygt-type-and-h><span class=secno>6.3.
-   </span>Frequencies: the &lsquo;<a href="#frequency-value"><code
+  <h3 id=frequency><span class=secno>6.3. </span> Frequencies: the &lsquo;<a
+   href="#frequency-value"><code
    class=css>&lt;frequency&gt;</code></a>&rsquo; type and &lsquo;<a
    href="#hz"><code class=css>Hz</code></a>&rsquo;, &lsquo;<a
    href="#khz"><code class=css>kHz</code></a>&rsquo; units</h3>
@@ -1197,6 +1202,56 @@
   <p>For example, when representing sound pitches, 200Hz (or 200hz) is a bass
    sound, and 6kHz (or 6khz) is a treble sound.
 
+  <h3 id=resolution><span class=secno>6.4. </span> Resolutions: the &lsquo;<a
+   href="#dpi"><code class=css>dpi</code></a>&rsquo;, &lsquo;<a
+   href="#dpcm"><code class=css>dpcm</code></a>&rsquo;, and &lsquo;<a
+   href="#dppx"><code class=css>dppx</code></a>&rsquo; units</h3>
+
+  <p>Resolution units are <i>dimensions</i> denoted by <dfn
+   id=resolution-value>&lt;resolution></dfn>. The frequency unit identifiers
+   are:
+
+  <dl>
+   <dt><dfn id=dpi>dpi</dfn>
+
+   <dd>dots per inch
+
+   <dt><dfn id=dpcm>dpcm</dfn>
+
+   <dd>dots per centimeter
+
+   <dt><dfn id=dppx>dppx</dfn>
+
+   <dd>dots per &lsquo;<code class=css>px</code>&rsquo; unit
+  </dl>
+
+  <p>The &lsquo;<a href="#resolution-value"><code
+   class=css>&lt;resolution></code></a>&rsquo; unit represents the size of a
+   single "dot" in a graphical representation by indicating how many of these
+   dots fit in a CSS &lsquo;<code class=property>in</code>&rsquo;,
+   &lsquo;<code class=property>cm</code>&rsquo;, or &lsquo;<code
+   class=property>px</code>&rsquo;. For uses, see e.g. the &lsquo;<code
+   class=css>resolution</code>&rsquo; media query in <a href="#MEDIAQ"
+   rel=biblioentry>[MEDIAQ]<!--{{MEDIAQ}}--></a> or the &lsquo;<code
+   class=property>image-resolution</code>&rsquo; property defined in
+   [[CSS3IMAGES]].
+
+  <p class=note>Note that due to the 1:96 fixed ratio of CSS &lsquo;<code
+   class=css>in</code>&rsquo; to CSS &lsquo;<code class=css>px</code>&rsquo;,
+   &lsquo;<code class=css>1dppx</code>&rsquo; is equivalent to &lsquo;<code
+   class=css>96dpi</code>&rsquo;. This corresponds to the default resolution
+   of images displayed in CSS: see &lsquo;<code
+   class=property>image-resolution</code>&rsquo;.
+
+  <div class=example>
+   <p>The following @media rule uses Media Queries <a href="#MEDIAQ"
+    rel=biblioentry>[MEDIAQ]<!--{{MEDIAQ}}--></a> to assign some special
+    style rules to devices that use two or more device pixels per CSS
+    &lsquo;<code class=css>px</code>&rsquo; unit:
+
+   <pre>@media (min-resolution: 2dppx) { ... }</pre>
+  </div>
+
   <h2 id=defined-elsewhere><span class=secno>7. </span> Data Types Defined
    Elsewhere</h2>
 
@@ -1819,6 +1874,16 @@
     </dd>
    <!---->
 
+   <dt id=MEDIAQ>[MEDIAQ]
+
+   <dd>H&#229;kon Wium Lie; et al. <a
+    href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/"><cite>Media
+    Queries.</cite></a> 27 July 2010. W3C Candidate Recommendation. (Work in
+    progress.) URL: <a
+    href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/">http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/</a>
+    </dd>
+   <!---->
+
    <dt id=URI>[URI]
 
    <dd>T. Berners-Lee; R. Fielding; L. Masinter. <a
@@ -1859,6 +1924,12 @@
    <li>dimension, <a href="#dimension"
     title=dimension><strong>5.</strong></a>
 
+   <li>dpcm, <a href="#dpcm" title=dpcm><strong>6.4.</strong></a>
+
+   <li>dpi, <a href="#dpi" title=dpi><strong>6.4.</strong></a>
+
+   <li>dppx, <a href="#dppx" title=dppx><strong>6.4.</strong></a>
+
    <li>em, <a href="#em-unit" title=em><strong>5.1.1.</strong></a>
 
    <li>ex, <a href="#ex-unit" title=ex><strong>5.1.1.</strong></a>
@@ -1927,6 +1998,9 @@
 
    <li>rem, <a href="#rem-unit" title=rem><strong>5.1.1.</strong></a>
 
+   <li>&lt;resolution>, <a href="#resolution-value"
+    title="&lt;resolution>"><strong>6.4.</strong></a>
+
    <li>resolved type, <a href="#resolved-type"
     title="resolved type"><strong>8.1.</strong></a>
 

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-values/Overview.src.html,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- Overview.src.html	5 Jan 2012 19:38:38 -0000	1.159
+++ Overview.src.html	7 Feb 2012 22:59:50 -0000	1.160
@@ -775,7 +775,8 @@
 	If the value is outside the allowed range, the declaration is invalid
 	and must be <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
 
-<h3>Frequencies: the ''&lt;frequency&gt;'' type and ''Hz'', ''kHz'' units</h3>
+<h3 id="frequency">
+Frequencies: the ''&lt;frequency&gt;'' type and ''Hz'', ''kHz'' units</h3>
 	
 	<p>Frequency values are <i>dimensions</i> denoted by
 	<dfn id="frequency-value">&lt;frequency&gt;</dfn>.
@@ -791,6 +792,40 @@
 	<p>For example, when representing sound pitches, 200Hz (or 200hz)
 	is a bass sound, and 6kHz (or 6khz) is a treble sound.</p>
 
+<h3 id="resolution">
+Resolutions: the ''dpi'', ''dpcm'', and ''dppx'' units</h3>
+
+	<p>Resolution units are <i>dimensions</i> denoted by <dfn id="resolution-value">&lt;resolution></dfn>.  The frequency unit identifiers are:</p>
+
+	<dl>
+		<dt><dfn>dpi</dfn></dt>
+		<dd>dots per inch</dd>
+
+		<dt><dfn>dpcm</dfn></dt>
+		<dd>dots per centimeter</dd>
+
+		<dt><dfn>dppx</dfn></dt> 
+		<dd>dots per ''px'' unit</dd>
+	</dl>
+
+	<p>The ''&lt;resolution>'' unit represents the size of a single "dot" in a
+	graphical representation by indicating how many of these dots fit in a
+	CSS 'in', 'cm', or 'px'. 
+	For uses, see e.g. the  ''resolution'' media query in [[MEDIAQ]]
+	or the 'image-resolution' property defined in [[CSS3IMAGES]].
+
+	<p class="note">Note that due to the 1:96 fixed ratio of CSS ''in'' to
+	CSS ''px'', ''1dppx'' is equivalent to ''96dpi''. This corresponds to
+	the default resolution of images displayed in CSS: see 'image-resolution'.
+
+	<div class="example">
+		<p>The following @media rule uses Media Queries [[MEDIAQ]] to assign
+		some special style rules to devices that use two or more device pixels
+		per CSS ''px'' unit:
+		<pre>@media (min-resolution: 2dppx) { ... }</pre>
+	</div>
+
+
 <h2 id="defined-elsewhere">
 Data Types Defined Elsewhere</h2>
 
Received on Tuesday, 7 February 2012 23:01:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:50 UTC