|
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 7 April 2008</h2> |
| 27 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 9 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-20080407/">http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080407/</a> |
| 33 | + href="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080409/">http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080409/</a> |
34 | 34 |
|
35 | 35 | <dt>Latest version: |
36 | 36 |
|
@@ -88,15 +88,19 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2> |
88 | 88 | <p>HTML4 and CSS2 currently support media-dependent style sheets tailored |
89 | 89 | for different <em>media types</em>. For example, a document may use |
90 | 90 | sans-serif fonts when displayed on a screen and serif fonts when printed. |
91 | | - "Screen" and "print" are two media types that have been defined. <em>Media |
92 | | - queries</em> extend the functionality of media types by allowing more |
93 | | - precise labeling of style sheets. |
| 91 | + ‘<code class=css>screen</code>’ and ‘<code |
| 92 | + class=css>print</code>’ are two media types that have been defined. |
| 93 | + <em>Media queries</em> extend the functionality of media types by allowing |
| 94 | + more precise labeling of style sheets. |
94 | 95 |
|
95 | 96 | <p>A media query consists of a media type and one or more expressions to |
96 | 97 | limit the scope of style sheets. Among the <em>media features</em> that |
97 | | - can be used in media queries are "width", "height", and "color". By using |
98 | | - media queries, presentations can be tailored to a specific range of output |
99 | | - devices without changing the content itself. |
| 98 | + can be used in media queries are ‘<code |
| 99 | + class=css>width</code>’, ‘<code |
| 100 | + class=css>height</code>’, and ‘<code |
| 101 | + class=css>color</code>’. By using media queries, presentations can |
| 102 | + be tailored to a specific range of output devices without changing the |
| 103 | + content itself. |
100 | 104 |
|
101 | 105 | <h2 class="no-num no-toc" id=status>Status of this document</h2> |
102 | 106 |
|
@@ -301,11 +305,21 @@ <h2 id=background><span class=secno>1. </span>Background</h2> |
301 | 305 | </pre> |
302 | 306 | </div> |
303 | 307 |
|
304 | | - <p>The "print" and "screen" media types are defined in HTML4. The complete |
305 | | - list of media types in HTML4 is: "aural", "braille", "handheld", "print", |
306 | | - "projection", "screen", "tty", "tv". CSS2 defines the same list, removes |
307 | | - "aural" and adds "embossed" and "speech". Also, "all" is used to indicate |
308 | | - that the style sheet applies to all media types. |
| 308 | + <p>The ‘<code class=css>print</code>’ and ‘<code |
| 309 | + class=css>screen</code>’ media types are defined in HTML4. The |
| 310 | + complete list of media types in HTML4 is: ‘<code |
| 311 | + class=css>aural</code>’, ‘<code |
| 312 | + class=css>braille</code>’, ‘<code |
| 313 | + class=css>handheld</code>’, ‘<code |
| 314 | + class=css>print</code>’, ‘<code |
| 315 | + class=css>projection</code>’, ‘<code |
| 316 | + class=css>screen</code>’, ‘<code class=css>tty</code>’, |
| 317 | + ‘<code class=css>tv</code>’. CSS2 defines the same list, |
| 318 | + removes ‘<code class=css>aural</code>’ and adds ‘<code |
| 319 | + class=css>embossed</code>’ and ‘<code |
| 320 | + class=css>speech</code>’. Also, ‘<code |
| 321 | + class=css>all</code>’ is used to indicate that the style sheet |
| 322 | + applies to all media types. |
309 | 323 |
|
310 | 324 | <p>Media-specific style sheets are supported by several user agents. The |
311 | 325 | most commonly used feature is to distinguish between "screen" and "print". |
@@ -369,7 +383,7 @@ <h2 id=media0><span class=secno>2. </span>Media Queries</h2> |
369 | 383 | <p>A media query consists of a media type and one or more <span class=index |
370 | 384 | id=expressions>expressions</span> involving <span class=index |
371 | 385 | id=media>media features</span>. If the media type is omitted it is assumed |
372 | | - to be "all". |
| 386 | + to be ‘<code class=css>all</code>’. |
373 | 387 |
|
374 | 388 | <div class=example> |
375 | 389 | <p>Here is a simple example written in HTML:</p> |
|
0 commit comments