Skip to content

Commit 52346b6

Browse files
author
Florian Rivoal
committed
Drop support the the resolution descriptor
1 parent b37083d commit 52346b6

2 files changed

Lines changed: 5 additions & 216 deletions

File tree

css-device-adapt/Overview.html

Lines changed: 5 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
<h1>CSS Device Adaptation</h1>
1919

20-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 June 2012</h2>
20+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 July 2012</h2>
2121

2222
<dl>
2323
<dt>This version:
2424

2525
<dd>$Date$ (editor's draft)
26-
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css-device-adapt-20120619/">http://www.w3.org/TR/2012/WD-css-device-adapt-20120619/</a></dd>-->
26+
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css-device-adapt-20120719/">http://www.w3.org/TR/2012/WD-css-device-adapt-20120719/</a></dd>-->
2727

2828

2929
<dt>Latest version:
@@ -180,10 +180,6 @@ <h2 class="no-num no-toc" id=table-of-contents>Table of Contents</h2>
180180
<li><a href="#the-lsquoorientationrsquo-descriptor"><span
181181
class=secno>5.9. </span>The ‘<code
182182
class=descriptor>orientation</code>’ descriptor</a>
183-
184-
<li><a href="#the-lsquoresolutionrsquo-descriptor"><span
185-
class=secno>5.10. </span>The ‘<code
186-
class=descriptor>resolution</code>’ descriptor</a>
187183
</ul>
188184

189185
<li><a href="#constraining-viewport-descriptor-values"><span
@@ -1082,76 +1078,6 @@ <h3 id=the-lsquoorientationrsquo-descriptor><span class=secno>5.9.
10821078
<dd>The document should be locked to landscape presentation.
10831079
</dl>
10841080

1085-
<h3 id=the-lsquoresolutionrsquo-descriptor><span class=secno>5.10.
1086-
</span>The ‘<a href="#resolution"><code
1087-
class=descriptor>resolution</code></a>’ descriptor</h3>
1088-
<!-- http://lists.w3.org/Archives/Public/www-style/2010Aug/0131.html -->
1089-
1090-
<table class=descdef>
1091-
<tbody>
1092-
<tr>
1093-
<td><em>Name:</em>
1094-
1095-
<td><dfn id=resolution>resolution</dfn>
1096-
1097-
<tr>
1098-
<td><em>Value:</em>
1099-
1100-
<td>auto | device
1101-
1102-
<tr>
1103-
<td><em>Initial:</em>
1104-
1105-
<td><a href="#auto4" title="auto!!resolution">auto</a>
1106-
1107-
<tr>
1108-
<td><em>Percentages:</em>
1109-
1110-
<td>N/A
1111-
1112-
<tr>
1113-
<td><em>Media:</em>
1114-
1115-
<td>visual, continuous
1116-
1117-
<tr>
1118-
<td><em>Computed value:</em>
1119-
1120-
<td><a href="#auto4"><code class=css
1121-
title="auto!!resolution">auto</code></a>’ or ‘<a
1122-
href="#device"><code class=css>device</code></a>’.
1123-
</table>
1124-
1125-
<p>The UA relates the CSS pixel to the <a
1126-
href="http://www.w3.org/TR/CSS21/syndata.html#x40">reference pixel</a> or
1127-
the physical <a
1128-
href="http://www.w3.org/TR/CSS21/syndata.html#length-units">length
1129-
units</a> as described in CSS 2.1 <a href="#CSS21"
1130-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>. The resolution descriptor
1131-
can be used to override the CSS pixel size chosen by the UA. In CSS,
1132-
absolute length units are fixed in relation to each other, hence, changing
1133-
the CSS pixel resolution will for instance change the physical length of a
1134-
CSS cm.
1135-
1136-
<p>Note that setting this descriptor will affect the used lengths for ‘<a
1137-
href="#device-width"><code class=css>device-width</code></a>’, ‘<a
1138-
href="#device-height"><code class=css>device-height</code></a>’, and the
1139-
size of the <a href="#initial-viewport">initial viewport</a>.
1140-
1141-
<p>Values have the following meanings:
1142-
1143-
<dl>
1144-
<dt><code class=css><dfn id=auto4
1145-
title="auto!!resolution">auto</dfn></code>
1146-
1147-
<dd>Use the UAs CSS pixel resolution.
1148-
1149-
<dt><code class=css><dfn id=device>device</dfn></code>
1150-
1151-
<dd>Use device resolution as the CSS pixel resolution. That is, have a 1-1
1152-
relationship between a CSS and a device pixel.
1153-
</dl>
1154-
11551081
<h2 id=constraining-viewport-descriptor-values><span class=secno>6.
11561082
</span>Constraining viewport descriptor values</h2>
11571083

@@ -1570,9 +1496,6 @@ <h2 id=conformance><span class=secno>10. </span>Conformance</h2>
15701496
descriptors is optional.
15711497
</ul>
15721498

1573-
<p class=issue>Need to say something about the resolution descriptor if it
1574-
is kept.
1575-
15761499
<h2 id=viewport-meta><span class=secno>11. </span>Viewport <code
15771500
class=html>META</code> element</h2>
15781501

@@ -1619,8 +1542,6 @@ <h3 id=meta-properties><span class=secno>11.1. </span>Properties</h3>
16191542
<li><code class=index id=maximum-scale>maximum-scale</code>
16201543

16211544
<li><code class=index id=user-scalable>user-scalable</code>
1622-
1623-
<li><code class=index id=target-densitydpi>target-densityDpi</code>
16241545
</ul>
16251546

16261547
<h3 id=parsing-algorithm><span class=secno>11.2. </span>Parsing algorithm</h3>
@@ -1947,25 +1868,6 @@ <h4 class="no-num no-toc" id=the-user-scalable-property>The <code
19471868
--></pre>
19481869
</div>
19491870

1950-
<h4 class="no-num no-toc" id=the-target-densitydpi-property>The <code
1951-
class=index id=target-densitydpi0>target-densityDpi</code> property</h4>
1952-
1953-
<p class=note>This property differ from the others since it is from the
1954-
WebKit implementation used in the Android browser and not supported in
1955-
Safari
1956-
1957-
<p>The <code class=index id=target-densitydpi1>target-densityDpi</code>
1958-
property is translated into ‘<a href="#resolution"><code
1959-
class=descriptor>resolution</code></a>’ with the following value
1960-
translations.
1961-
1962-
<ol>
1963-
<li><code class=index id=device-dpi>device-dpi</code> translates to ‘<a
1964-
href="#device"><code class=css>device</code></a>
1965-
1966-
<li>Other values are dropped
1967-
</ol>
1968-
19691871
<h2 id=handling-auto-zoom><span class=secno>12. </span>Handling ‘<a
19701872
href="#auto0"><code class=css title="auto!!zoom">auto</code></a>’ for
19711873
<code class=descriptor title="zoom!!descriptor">zoom</code></h2>
@@ -2082,10 +1984,9 @@ <h3 class=no-num id=normative-references>Normative references</h3>
20821984
<dt id=MEDIAQ>[MEDIAQ]
20831985

20841986
<dd>Florian Rivoal. <a
2085-
href="http://www.w3.org/TR/2012/PR-css3-mediaqueries-20120426/"><cite>Media
2086-
Queries.</cite></a> 26 April 2012. W3C Proposed Recommendation. (Work in
2087-
progress.) URL: <a
2088-
href="http://www.w3.org/TR/2012/PR-css3-mediaqueries-20120426/">http://www.w3.org/TR/2012/PR-css3-mediaqueries-20120426/</a>
1987+
href="http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/"><cite>Media
1988+
Queries.</cite></a> 19 June 2012. W3C Recommendation. URL: <a
1989+
href="http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/">http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/</a>
20891990
</dd>
20901991
<!---->
20911992
</dl>
@@ -2205,17 +2106,6 @@ <h2 class=no-num id=descriptor-index>Descriptor index</h2>
22052106

22062107
<td>visual, continuous
22072108

2208-
<tr>
2209-
<th><a class=property href="#resolution">resolution</a>
2210-
2211-
<td>auto | device
2212-
2213-
<td>auto
2214-
2215-
<td>N/A
2216-
2217-
<td>visual, continuous
2218-
22192109
<tr>
22202110
<th><a class=property href="#user-zoom">user-zoom</a>
22212111

@@ -2272,16 +2162,9 @@ <h2 class=no-num id=index>Index</h2>
22722162
<li>orientation, <a href="#auto3"
22732163
title="auto, orientation"><strong>5.9.</strong></a>
22742164

2275-
<li>resolution, <a href="#auto4"
2276-
title="auto, resolution"><strong>5.10.</strong></a>
2277-
22782165
<li>zoom, <a href="#auto0" title="auto, zoom"><strong>5.5.</strong></a>
22792166
</ul>
22802167

2281-
<li>device, <a href="#device" title=device><strong>5.10.</strong></a>
2282-
2283-
<li>device-dpi, <a href="#device-dpi" title=device-dpi>#</a>
2284-
22852168
<li>device-height, <a href="#device-height"
22862169
title=device-height><strong>5.1.</strong></a>
22872170
<ul>
@@ -2358,14 +2241,6 @@ <h2 class=no-num id=index>Index</h2>
23582241
<li>portrait, <a href="#portrait" title=portrait><strong>5.9.</strong></a>
23592242

23602243

2361-
<li>resolution, <a href="#resolution"
2362-
title=resolution><strong>5.10.</strong></a>
2363-
2364-
<li>target-densityDpi, <a href="#target-densitydpi"
2365-
title=target-densityDpi>11.1.</a>, <a href="#target-densitydpi0"
2366-
title=target-densityDpi>#</a>, <a href="#target-densitydpi1"
2367-
title=target-densityDpi>#</a>
2368-
23692244
<li>user-scalable, <a href="#user-scalable" title=user-scalable>11.1.</a>,
23702245
<a href="#user-scalable0" title=user-scalable>#</a>, <a
23712246
href="#user-scalable1" title=user-scalable>#</a>

css-device-adapt/Overview.src.html

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -846,73 +846,6 @@ <h3>The &lsquo;<code class="descriptor">orientation</code>&rsquo; descriptor</h3
846846
<dd>The document should be locked to landscape presentation.</dd>
847847
</dl>
848848

849-
850-
<h3>The &lsquo;<code class="descriptor">resolution</code>&rsquo; descriptor</h3>
851-
852-
<!-- http://lists.w3.org/Archives/Public/www-style/2010Aug/0131.html -->
853-
854-
<table class="descdef">
855-
<tbody>
856-
<tr>
857-
<td><em>Name:</em></td>
858-
<td><dfn>resolution</dfn></td>
859-
</tr>
860-
861-
<tr>
862-
<td><em>Value:</em></td>
863-
<td>auto | device</td>
864-
</tr>
865-
866-
<tr>
867-
<td><em>Initial:</em></td>
868-
<td><span title="auto!!resolution">auto</span></td>
869-
</tr>
870-
871-
<tr>
872-
<td><em>Percentages:</em></td>
873-
<td>N/A</td>
874-
</tr>
875-
876-
<tr>
877-
<td><em>Media:</em></td>
878-
<td>visual, continuous</td>
879-
</tr>
880-
881-
<tr>
882-
<td><em>Computed&nbsp;value:</em></td>
883-
<td>&lsquo;<code class="css" title="auto!!resolution">auto</code>&rsquo; or
884-
&lsquo;<code class="css">device</code>&rsquo;. </td>
885-
</tr>
886-
</tbody>
887-
</table>
888-
889-
<p>The UA relates the CSS pixel to the
890-
<a href="http://www.w3.org/TR/CSS21/syndata.html#x40">reference pixel</a>
891-
or the physical
892-
<a href="http://www.w3.org/TR/CSS21/syndata.html#length-units">length units</a>
893-
as described in CSS 2.1 [[!CSS21]]. The resolution descriptor can be used to
894-
override the CSS pixel size chosen by the UA and force a 1 to 1 mapping between
895-
CSS pixels and physical ones. In CSS, absolute length units are fixed in
896-
relation to each other, hence, changing the CSS pixel resolution will for
897-
instance change the physical length of a CSS cm.</p>
898-
899-
<p>Note that setting this descriptor will affect the used lengths for
900-
&lsquo;<code class="css">device-width</code>&rsquo;,
901-
&lsquo;<code class="css">device-height</code>&rsquo;, and the size of the
902-
<span>initial viewport</span>.
903-
904-
<p>Values have the following meanings:</p>
905-
906-
<dl>
907-
<dt>&lsquo;<code class="css"><dfn title="auto!!resolution">auto</dfn></code>&rsquo;</dt>
908-
<dd>Use the UAs CSS pixel resolution.</dd>
909-
910-
<dt>&lsquo;<code class="css"><dfn>device</dfn></code>&rsquo;</dt>
911-
<dd>Use device resolution as the CSS pixel resolution. That is, have a
912-
1-1 relationship between a CSS and a device pixel.</dd>
913-
914-
</dl>
915-
916849
<h2>Constraining viewport descriptor values</h2>
917850

918851
<h3>Definitions</h3>
@@ -1316,9 +1249,6 @@ <h2>Conformance</h2>
13161249
descriptors is optional.</p></li>
13171250
</ul>
13181251

1319-
<p class="issue">Need to say something about the resolution descriptor if it
1320-
is kept.</p>
1321-
13221252
<h2 id="viewport-meta">Viewport <code class="html">META</code> element</h2>
13231253

13241254
<p><em>This section is not normative.</em></p>
@@ -1358,7 +1288,6 @@ <h3 id="meta-properties">Properties</h3>
13581288
<li><code class="index">minimum-scale</code></li>
13591289
<li><code class="index">maximum-scale</code></li>
13601290
<li><code class="index">user-scalable</code></li>
1361-
<li><code class="index">target-densityDpi</code></li>
13621291
</ul>
13631292

13641293
<h3 id="parsing-algorithm">Parsing algorithm</h3>
@@ -1570,21 +1499,6 @@ <h4 class="no-num no-toc">The <code class="index">user-scalable</code> property<
15701499
--></pre>
15711500
</div>
15721501

1573-
<h4 class="no-num no-toc">The <code class="index">target-densityDpi</code> property</h4>
1574-
1575-
<p class="note">This property differ from the others since it is from the WebKit
1576-
implementation used in the Android browser and not supported in Safari</p>
1577-
1578-
<p>The <code class="index">target-densityDpi</code> property is translated
1579-
into &lsquo;<code class="descriptor">resolution</code>&rsquo; with the
1580-
following value translations.</p>
1581-
1582-
<ol>
1583-
<li><code class="index">device-dpi</code> translates to
1584-
&lsquo;<code class="css">device</code>&rsquo;</li>
1585-
<li>Other values are dropped</li>
1586-
</ol>
1587-
15881502
<h2 id="handling-auto-zoom">Handling &lsquo;<code class="css" title="auto!!zoom">auto</code>&rsquo;
15891503
for &lsquo;<code class="descriptor" title="zoom!!descriptor">zoom</code>&rsquo;</h2>
15901504

0 commit comments

Comments
 (0)