|
24 | 24 |
|
25 | 25 | <h1 id=media-queries>Media Queries</h1> |
26 | 26 |
|
27 | | - <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 6 April 2008</h2> |
| 27 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 7 April 2008</h2> |
28 | 28 |
|
29 | 29 | <dl> |
30 | 30 | <dt>This version: |
31 | 31 |
|
32 | 32 | <dd><a |
33 | | - href="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080406/">http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080406/</a> |
| 33 | + href="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080407/">http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080407/</a> |
34 | 34 |
|
35 | 35 | <dt>Latest version: |
36 | 36 |
|
@@ -551,6 +551,11 @@ <h2 id=syntax><span class=secno>3. </span>Syntax</h2> |
551 | 551 | : IDENT |
552 | 552 | ;</pre> |
553 | 553 |
|
| 554 | + <p>COMMENT tokens, as defined by CSS2, do not occur in the grammar (to keep |
| 555 | + it readable), but any number of these tokens may appear anywhere between |
| 556 | + other tokens. <a href="#CSS21" |
| 557 | + rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> |
| 558 | + |
554 | 559 | <p>The following new definitions are introduced: |
555 | 560 |
|
556 | 561 | <pre> |
@@ -646,6 +651,14 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3> |
646 | 651 | <pre>@media (example, all,), speech { /* only applicable to speech devices */ } |
647 | 652 | @media &test, screen { /* only applicable to screen devices */ }</pre> |
648 | 653 | </div> |
| 654 | + |
| 655 | + <div class=example> |
| 656 | + <p>The following is an malformed media query because having no space |
| 657 | + between "and" and the expression is not allowed. (That is reserved for |
| 658 | + the functional notation syntax.)</p> |
| 659 | + |
| 660 | + <pre>@media all and(color) { ... }</pre> |
| 661 | + </div> |
649 | 662 | <!-- |
650 | 663 | Removed as this might cause the wrong style sheet to apply if a part of the
F440
td> |
651 | 664 | media query is missing. This will now cause the respective media query to |
@@ -690,8 +703,8 @@ <h2 id=media1><span class=secno>4. </span>Media features</h2> |
690 | 703 | <li>Properties may accept more complex values, e.g., calculations that |
691 | 704 | involve several other values. Media features only accept single values: |
692 | 705 | one keyword, one number, or a number with a unit identifier. (The only |
693 | | - exeptions are the aspect-ratio' and ‘<span |
694 | | - class=property>device-aspect-ratio</span>’ media features.) |
| 706 | + exeptions are the ‘<code class=css>aspect-ratio</code>’ and |
| 707 | + ‘<code class=css>device-aspect-ratio</code>’ media features.) |
695 | 708 | </ul> |
696 | 709 |
|
697 | 710 | <div class=example> |
@@ -831,8 +844,8 @@ <h3 id=orientation><span class=secno>4.5 </span>orientation</h3> |
831 | 844 |
|
832 | 845 | <div class=example> |
833 | 846 | <pre> |
834 | | -@media all and (portrait) { ... } |
835 | | -@media all and (landscape) { ... } |
| 847 | +@media all and (orientation:portrait) { ... } |
| 848 | +@media all and (orientation:landscape) { ... } |
836 | 849 | </pre> |
837 | 850 | </div> |
838 | 851 |
|
|
0 commit comments