Skip to content

Commit d2868c0

Browse files
committed
Simplify media query / size conflict handling via bzbarsky's suggestion. <http://lists.w3.org/Archives/Public/www-style/2012Feb/0819.html>
1 parent 3b02837 commit d2868c0

2 files changed

Lines changed: 39 additions & 31 deletions

File tree

css3-page/Overview.html

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@
8787

8888
<h1>CSS Paged Media Module Level 3</h1>
8989

90-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 6 October 2011</h2>
90+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 17 February 2012</h2>
9191

9292
<dl>
9393
<dt>This version:
9494

9595
<dd><a
9696
href="http://dev.w3.org/csswg/css3-page/">http://dev.w3.org/csswg/css3-page/</a></dd>
97-
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-page-20111006/">http://www.w3.org/TR/2011/WD-css3-page-20111006</a></dd> -->
97+
<!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-page-20120217/">http://www.w3.org/TR/2012/WD-css3-page-20120217</a></dd> -->
9898

9999
<dt>Latest version:
100100

@@ -117,7 +117,7 @@ <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 6 October 2011</h2>
117117
<!--begin-copyright-->
118118
<p class=copyright><a
119119
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
120-
rel=license>Copyright</a> &copy; 2011 <a
120+
rel=license>Copyright</a> &copy; 2012 <a
121121
href="http://www.w3.org/"><acronym
122122
title="World Wide Web Consortium">W3C</acronym></a><sup>&reg;</sup> (<a
123123
href="http://www.csail.mit.edu/"><acronym
@@ -181,7 +181,7 @@ <h2 class="no-num no-toc" id=status>Status of this Document</h2>
181181
<p>This document contains the <abbr
182182
title="Cascading Style Sheets">CSS3</abbr> Paged Media Module W3C Last
183183
Call <a href="/2005/10/Process-20051014/tr.html#RecsWD">Working Draft</a>
184-
of 6 October 2011. The Last Call period ends on <span
184+
of 17 February 2012. The Last Call period ends on <span
185185
class=fudge>TBD</span>.</p>
186186

187187
<p>Relative to the previous Last Call Working Draft, this version has
@@ -1860,11 +1860,12 @@ <h3 id=page-based-counters><span class=secno>7.1. </span>Page-based
18601860
class=css>counter()</code>&rsquo; and &lsquo;<code
18611861
class=css>counters()</code>&rsquo; function forms.</p>
18621862

1863-
<p>Additionally, a counter named &lsquo;<code
1864-
class=css>pages</code>&rsquo; is automatically created by the UA. Its
1865-
value is always the total number of pages in the document. (In
1866-
continuous media this is always 1.) The value of &lsquo;<code
1867-
class=css>pages</code>&rsquo; cannot be manipulated: while &lsquo;<code
1863+
<p>Additionally, a counter named &lsquo;<a href="#page"><code
1864+
class=css>pages</code></a>&rsquo; is automatically created by the UA.
1865+
Its value is always the total number of pages in the document. (In
1866+
continuous media this is always 1.) The value of &lsquo;<a
1867+
href="#page"><code class=css>pages</code></a>&rsquo; cannot be
1868+
manipulated: while &lsquo;<code
18681869
class=property>counter-reset</code>&rsquo; and &lsquo;<code
18691870
class=property>counter-increment</code>&rsquo; statements that set it
18701871
are valid, they have no effect.
@@ -2120,13 +2121,18 @@ <h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the
21202121
contents of the page box should be scaled down to fit the largest
21212122
smaller page sheet available.</p>
21222123

2123-
<p>If a <a href="#size"><code>size</code></a> property declaration
2124-
specifies a page size that would cause that declaration to not apply
2125-
(e.g. a media query that qualifies it applies only to a different paper
2126-
size) then the declaration must be <a
2124+
<p>If a <a href="#size"><code>size</code></a> property declaration is
2125+
qualified by a &lsquo;<code class=css>width</code>&rsquo;, &lsquo;<code
2126+
class=css>height</code>&rsquo;, &lsquo;<code
2127+
class=css>device-width</code>&rsquo;, &lsquo;<code
2128+
class=css>device-height</code>&rsquo;, or &lsquo;<code
2129+
class=css>aspect-ratio</code>&rsquo; media query <a href="#MEDIAQ"
2130+
rel=biblioentry>[MEDIAQ]<!--{{!MEDIAQ}}--></a> (or other conditional on
2131+
the size of the paper), then the declaration must be <a
21272132
href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>. <span
2128-
class=issue>Is this a reasonable way of dealing with this
2129-
conflict?</span></p>
2133+
class=issue>Does &lsquo;<a href="#size"><code
2134+
class=property>size</code></a>&rsquo; impact media query resolution?
2135+
This is useful, but may be hard to implement.</span></p>
21302136

21312137
<div class=example>
21322138
<p>In the following example
@@ -3574,10 +3580,20 @@ <h3 class=no-num id=normative-references>Normative References</h3>
35743580
<dt id=CSS21>[CSS21]
35753581

35763582
<dd>Bert Bos; et al. <a
3577-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/"><cite>Cascading
3583+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading
35783584
Style Sheets Level 2 Revision 1 (CSS&#160;2.1)
35793585
Specification.</cite></a> 7 June 2011. W3C Recommendation. URL: <a
3580-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/">http://www.w3.org/TR/2011/REC-CSS2-20110607/</a>
3586+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a>
3587+
</dd>
3588+
<!---->
3589+
3590+
<dt id=MEDIAQ>[MEDIAQ]
3591+
3592+
<dd>H&#229;kon Wium Lie; et al. <a
3593+
href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/"><cite>Media
3594+
Queries.</cite></a> 27 July 2010. W3C Candidate Recommendation. (Work
3595+
in progress.) URL: <a
3596+
href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/">http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/</a>
35813597
</dd>
35823598
<!---->
35833599

@@ -3614,16 +3630,6 @@ <h3 class=no-num id=informative-references>Informative References</h3>
36143630
Modes Module.</cite> (forthcoming). W3C Working Draft. (Work in
36153631
progress.)</dd>
36163632
<!---->
3617-
3618-
<dt id=MEDIAQ>[MEDIAQ]
3619-
3620-
<dd>H&#229;kon Wium Lie; et al. <a
3621-
href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/"><cite>Media
3622-
Queries.</cite></a> 27 July 2010. W3C Candidate Recommendation. (Work
3623-
in progress.) URL: <a
3624-
href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/">http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/</a>
3625-
</dd>
3626-
<!---->
36273633
</dl>
36283634
<!--end-informative--></div>
36293635
</div>

css3-page/Overview.src.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,11 +1520,13 @@ <h3 id="page-size-prop">Page size: the 'size' property</h3>
15201520
larger size should be used; if not available, the contents of the page box
15211521
should be scaled down to fit the largest smaller page sheet available.</p>
15221522

1523-
<p>If a <code>size</code> property declaration specifies a page size that would
1524-
cause that declaration to not apply (e.g. a media query that qualifies it applies
1525-
only to a different paper size) then the declaration must be
1523+
<p>If a <code>size</code> property declaration is qualified by a ''width'',
1524+
''height'', ''device-width'', ''device-height'', or ''aspect-ratio'' media
1525+
query [[!MEDIAQ]] (or other conditional on the size of the paper), then
1526+
the declaration must be
15261527
<a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
1527-
<span class="issue">Is this a reasonable way of dealing with this conflict?</span></p>
1528+
<span class="issue">Does 'size' impact media query resolution? This is
1529+
useful, but may be hard to implement.</span></p>
15281530

15291531
<div class="example">
15301532
<p>In the following example

0 commit comments

Comments
 (0)