@@ -495,7 +495,8 @@ <h2 id=syntax><span class=secno>3. </span>Syntax</h2>
495495
496496 < p > The media query syntax is described in terms of the < a
497497 href ="http://www.w3.org/TR/CSS21/grammar.html "> CSS2 grammar</ a > and < a
498- href ="http://www.w3.org/TR/CSS21/syndata.html#syntax "> CSS2 syntax</ a > . The
498+ href ="http://www.w3.org/TR/CSS21/syndata.html#syntax "> CSS2 syntax</ a > . As
499+ such, rules not defined here are defined in CSS2. The
499500 < code > media_query_list</ code > production defined below replaces the
500501 < code > medium</ code > production from CSS2. < a href ="#CSS21 "
501502 rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
@@ -533,7 +534,7 @@ <h2 id=syntax><span class=secno>3. </span>Syntax</h2>
533534{num}{D}{P}{C}{M} {return RESOLUTION;}</ pre >
534535
535536 < p > < code > RESOLUTION</ code > is to be added to the CSS2 < code > term</ code >
536- production equivalently to other units .
537+ production.
537538
538539 < p > CSS style sheets are generally case-insensitive, and this is also the
539540 case for media queries.
@@ -603,14 +604,20 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
603604@media (example, all,), speech { /* only applicable to speech devices */ }
604605@media &test, screen { /* only applicable to screen devices */ }</ pre >
605606 </ div >
606-
607- < li >
608- < p > < strong > Unexpected end of media query.</ strong > User agents are to
609- close all open constructs (such as parenthesis and curly braces) upon
610- encountering an unexpected end of a media query.</ p >
611-
612- < p class =note > This error handling condition is only meaningful outside of
613- CSS.</ p >
607+ <!--
608+ Removed as this might cause the wrong style sheet to apply if a part of the
609+ media query is missing. This will now cause the respective media query to
610+ be ignored per the previous rule.
611+
612+ <li>
613+ <p><strong>Unexpected end of media query.</strong> User agents are to
614+ close all open constructs (such as parenthesis and curly braces) upon
615+ encountering an unexpected end of a media query.</p>
616+
617+ <p class="note">This error handling condition is only meaningful outside
618+ of CSS.</p>
619+ -->
620+
614621 </ ul >
615622
616623 < h2 id =media1 > < span class =secno > 4. </ span > Media features</ h2 >
0 commit comments