2424
2525 < h1 id =media-queries > Media Queries</ h1 >
2626
27- < h2 class ="no-num no-toc " id =w3c-working > Editor's Draft 12 June 2008</ h2 >
27+ < h2 class ="no-num no-toc " id =w3c-working > Editor's Draft 26 August 2008</ h2 >
2828
2929 < dl >
3030 < dt > This version:
3131
3232 < dd > < a
33- href ="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080612 / "> http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080612 /</ a >
33+ href ="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080826 / "> http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080826 /</ a >
3434
3535 < dt > Latest version:
3636
@@ -400,6 +400,9 @@ <h2 id=media0><span class=secno>2. </span>Media Queries</h2>
400400 (< code > example.css</ code > ) applies to devices of a certain media type
401401 (‘< code class =css > screen</ code > ’) with certain feature (it
402402 must be a color screen).</ p >
403+
404+ < p class =note > HTML has not yet been normatively updated to use media
405+ queries in the < code > media</ code > attribute.</ p >
403406 </ div >
404407
405408 < div class =example >
@@ -494,6 +497,11 @@ <h2 id=media0><span class=secno>2. </span>Media Queries</h2>
494497
495498< span class =css-example > @media screen and (color), projection and (color) { ... }</ span >
496499</ pre >
500+
501+ < p class =note > Just like HTML, the < a href ="#XMLSTYLE "
502+ rel =biblioentry > [XMLSTYLE]<!--{{XMLSTYLE}}--> </ a > specification has not
503+ yet been updated to use media queries in the < code > media</ code >
504+ pseudo-attribute.</ p >
497505 </ div >
498506
499507 < p > If a media feature does not apply to the device where the UA is running,
@@ -563,7 +571,7 @@ <h2 id=syntax><span class=secno>3. </span>Syntax</h2>
563571 rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
564572
565573 < pre > media_query_list
566- : S* media_query [ ',' S* media_query]* | S*
574+ : S* media_query [ ',' S* media_query]* | S*
567575 ;
568576media_query
569577 : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
@@ -573,7 +581,7 @@ <h2 id=syntax><span class=secno>3. </span>Syntax</h2>
573581 : IDENT
574582 ;
575583expression
576- : '(' S* media_feature S* [':' S* value]? ')' S*
584+ : '(' S* media_feature S* [':' S* value]? ')' S*
577585 ;
578586media_feature
579587 : IDENT
@@ -687,8 +695,8 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
687695 unexpected tokens encountered while parsing a media query by reading
688696 until the end of the media query, while observing < a
689697 href ="http://www.w3.org/TR/CSS21/syndata.html#block "> the rules for
690- matching pairs</ a > of (), [], {}, "", and '' , and correctly handling
691- escapes. Media queries with unexpected tokens are ignored. < a
698+ matching pairs</ a > of (), [], {}, "", and '' , and correctly
699+ handling escapes. Media queries with unexpected tokens are ignored. < a
692700 href ="#CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > </ p >
693701
694702 < div class =example >
@@ -1164,6 +1172,9 @@ <h3 id=grid><span class=secno>4.13 </span>grid</h3>
11641172 grid-based (e.g., a "tty" terminal, or a phone display with only one fixed
11651173 font), the value will be 1. Otherwise, the value will be 0.
11661174
1175+ < p > Only 0 and 1 are valid values. (This includes -0.) Thus everything else
1176+ creates a malformed media query.
1177+
11671178 < p > The ‘< code class =css > em</ code > ’ unit has a special meaning
11681179 in grid output devices. Since the exact with of an ‘< code
11691180 class =css > em</ code > ’ cannot be determined, one ‘< code
@@ -1186,16 +1197,15 @@ <h2 id=values><span class=secno>5. </span>Values</h2>
11861197 < p > The <ratio> value is a positive (not zero or negative) <integer>
11871198 followed by optional whitespace, followed by a solidus (‘< code
11881199 class =css > /</ code > ’), followed by optional whitespace, followed by a
1189- positive <integer> . Whitespace and <integer> are defined by CSS 2.1.
1190- < a href ="#CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
1200+ positive <integer> .
11911201
1192- < p > The <resolution> value is a positive <integer > immediately
1193- followed by a unit identifier (‘< code class =css > dpi</ code > ’ or
1202+ < p > The <resolution> value is a positive <number > immediately followed
1203+ by a unit identifier (‘< code class =css > dpi</ code > ’ or
11941204 ‘< code class =css > dpcm</ code > ’).
11951205
1196- < p > Other values used by this specification are the same as in other parts
1197- of CSS, normatively defined by CSS 2.1. < a href =" #CSS21 "
1198- rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
1206+ < p > Whitespace, <integer > , <number > and other values used by this
1207+ specification are the same as in other parts of CSS, normatively defined
1208+ by CSS 2.1. < a href =" #CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
11991209
12001210 < h2 id =units > < span class =secno > 6. </ span > Units</ h2 >
12011211
@@ -1207,8 +1217,8 @@ <h2 id=units><span class=secno>6. </span>Units</h2>
12071217
12081218 < p > Relative units in media queries are based on the initial value. For
12091219 example, in HTML, the ‘< code class =css > em</ code > ’ unit is
1210- relative to the initial value of ‘< span
1211- class =property > font-size</ span > ’.
1220+ relative to the initial value of ‘< code
1221+ class =property > font-size</ code > ’.
12121222
12131223 < h3 id =resolution0 > < span class =secno > 6.1 </ span > Resolution</ h3 >
12141224
0 commit comments