@@ -322,7 +322,9 @@ <h2 id=background><span class=secno>1. </span>Background</h2>
322322 applies to all media types.
323323
324324 < p > Media-specific style sheets are supported by several user agents. The
325- most commonly used feature is to distinguish between "screen" and "print".
325+ most commonly used feature is to distinguish between ‘< code
326+ class =css > screen</ code > ’ and ‘< code
327+ class =css > print</ code > ’.
326328
327329 < p > There have been requests for ways to describe in more detail what type
328330 of output devices a style sheet applies to. Fortunately HTML4 foresaw
@@ -410,16 +412,17 @@ <h2 id=media0><span class=secno>2. </span>Media Queries</h2>
410412 media query is true if the media type of the media query matches the media
411413 type of the device where the user agent is running (as defined in the
412414 "Applies to" line), and all expressions in the media query are true. Also,
413- a media query which is otherwise false becomes true if the "not" keyword
414- is present.
415+ a media query which is otherwise false becomes true if the ‘ < code
416+ class = css > not </ code > ’ keyword is present.
415417
416418 < p > When a media query is true, the corresponding style sheet is applied as
417419 per the normal cascading rules.
418420
419421 < p > Several media queries can be combined in a comma-separated list. If one
420422 or more of the media queries in the comma-separated list is true, the
421423 associated style sheet is applied, otherwise the associated style sheet is
422- ignored.
424+ ignored. If the comma-separated list is the emtpy list it is assumed to
425+ specify the media query ‘< code class =css > all</ code > ’.
423426
424427 < div class =example >
425428 < p > Here is an example of several media queries in a comma-separated list
@@ -430,6 +433,15 @@ <h2 id=media0><span class=secno>2. </span>Media Queries</h2>
430433</ pre >
431434 </ div >
432435
436+ < div class =example >
437+ < p > Here are two examples of the empty media query list in HTML:</ p >
438+
439+ < pre >
440+ < span class =html-example > <link rel="stylesheet" href="example.css" media=""/> </ span >
441+ < span class =html-example > <link rel="stylesheet" href="example.css" media=" "/> </ span >
442+ </ pre >
443+ </ div >
444+
433445 < p > In the media queries syntax, the comma expresses a logical OR, while the
434446 ‘< code class =css > and</ code > ’ keyword expresses a logical AND.
435447
@@ -549,7 +561,7 @@ <h2 id=syntax><span class=secno>3. </span>Syntax</h2>
549561 rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
550562
551563 < pre > media_query_list
552- : S* media_query [ ',' S* media_query]*
564+ : S* media_query [ ',' S* media_query]* | S*
553565 ;
554566media_query
555567 : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
@@ -635,6 +647,14 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
635647 evaluated as if the first had not been specified.</ p >
636648 </ div >
637649
650+ < div class =example >
651+ < pre > @media (min-orientation:portrait) { ... }</ pre >
652+
653+ < p > Is dropped because the ‘< code
654+ class =css > orientation</ code > ’ feature does not accept the
655+ ‘< code class =css > min-</ code > ’ prefix.</ p >
656+ </ div >
657+
638658 < li >
639659 < p > < strong > Unknown media feature values.</ strong > As with unknown media
640660 features, user agents are to ignore a media query when one of the
@@ -668,8 +688,8 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
668688
669689 < div class =example >
670690 < p > The following is an malformed media query because having no space
671- between " and" and the expression is not allowed. (That is reserved for
672- the functional notation syntax.)</ p >
691+ between ‘ < code class = css > and</ code > ’ and the expression is
692+ not allowed. (That is reserved for the functional notation syntax.)</ p >
673693
674694 < pre > @media all and(color) { ... }</ pre >
675695 </ div >
@@ -700,11 +720,13 @@ <h2 id=media1><span class=secno>4. </span>Media features</h2>
700720 how to present a document. Media features are used in
701721 < em > expressions</ em > to describe requirements of the output device.
702722
703- < li > Most media features accept optional "min-" or "max-" prefixes to
704- express "greater or equal to" and "smaller or equal to" constraints. This
705- syntax is used to avoid "<" and ">" characters which may conflict
706- with HTML and XML. Those media features that accept prefixes will most
707- often be used with prefixes, but can also be used alone.
723+ < li > Most media features accept optional ‘< code
724+ class =css > min-</ code > ’ or ‘< code class =css > max-</ code > ’
725+ prefixes to express "greater or equal to" and "smaller or equal to"
726+ constraints. This syntax is used to avoid "<" and ">" characters
727+ which may conflict with HTML and XML. Those media features that accept
728+ prefixes will most often be used with prefixes, but can also be used
729+ alone.
708730
709731 < li > Properties always require a value to form a declaration. Media
710732 features, on the other hand, can also be used without a value. For a
@@ -1174,7 +1196,8 @@ <h3 id=resolution0><span class=secno>5.1 </span>Resolution</h3>
11741196
11751197 < p > The ‘< code class =css > dpi</ code > ’ and ‘< code
11761198 class =css > dpcm</ code > ’ units describe the resolution of an output
1177- device, i.e., the density of pixels. Resolution unit identifiers are:
1199+ device, i.e., the density of device pixels. Resolution unit identifiers
1200+ are:
11781201
11791202 < dl >
11801203 < dt > dpi
0 commit comments