Skip to content

Commit 05ed81b

Browse files
committed
remove EOF handling; make some editorial changes
1 parent 0f4c543 commit 05ed81b

2 files changed

Lines changed: 28 additions & 14 deletions

File tree

css3-mediaqueries/Overview.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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 &amp;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>

css3-mediaqueries/Overview.src.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,9 @@ <h2>Syntax</h2>
417417

418418
<p>The media query syntax is described in terms of the
419419
<a href="http://www.w3.org/TR/CSS21/grammar.html">CSS2 grammar</a> and
420-
<a href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS2 syntax</a>.
421-
The <code>media_query_list</code> production defined below replaces the
420+
<a href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS2 syntax</a>. As
421+
such, rules not defined here are defined in CSS2. The
422+
<code>media_query_list</code> production defined below replaces the
422423
<code>medium</code> production from CSS2. [[!CSS21]]</p>
423424

424425
<pre>media_query_list
@@ -454,7 +455,7 @@ <h2>Syntax</h2>
454455
{num}{D}{P}{C}{M} {return RESOLUTION;}</pre>
455456

456457
<p><code>RESOLUTION</code> is to be added to the CSS2
457-
<code>term</code> production equivalently to other units.</p>
458+
<code>term</code> production.</p>
458459

459460
<p>CSS style sheets are generally case-insensitive, and this is
460461
also the case for media queries.</p>
@@ -523,14 +524,20 @@ <h3>Error Handling</h3>
523524
@media (example, all,), speech { /* only applicable to speech devices */ }
524525
@media &amp;test, screen { /* only applicable to screen devices */ }</pre>
525526
</div>
526-
527+
528+
<!--
529+
Removed as this might cause the wrong style sheet to apply if a part of the
530+
media query is missing. This will now cause the respective media query to
531+
be ignored per the previous rule.
532+
527533
<li>
528534
<p><strong>Unexpected end of media query.</strong> User agents are to
529535
close all open constructs (such as parenthesis and curly braces) upon
530536
encountering an unexpected end of a media query.</p>
531537
532538
<p class="note">This error handling condition is only meaningful outside
533539
of CSS.</p>
540+
-->
534541
</ul>
535542

536543
<h2 id="media1">Media features</h2>

0 commit comments

Comments
 (0)