Skip to content

Commit 66e859d

Browse files
committed
[mediaqueries-3] Fold in correction 1, and mark c2 as proposed
See w3c#10245
1 parent 6c795c0 commit 66e859d

File tree

1 file changed

+44
-27
lines changed

1 file changed

+44
-27
lines changed

mediaqueries-3/Overview.html

Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747

4848
<h1 id=title>Media Queries Level 3</h1>
4949

50-
<!-- <p id="w3c-state"><a href="https://www.w3.org/standards/types#REC">W3C Recommendation</a>, <time class="dt-updated" datetime="2022-04-05">05 April 2022</time></p> -->
51-
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2022-04-05">05 April 2022</time></p>
50+
<!-- <p id="w3c-state"><a href="https://www.w3.org/standards/types#REC">W3C Recommendation</a>, <time class="dt-updated" datetime="2024-05-14">14 May 2024</time></p> -->
51+
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-05-01">14 May 2024</time></p>
5252

5353
<details open><summary>More details about this document</summary>
5454
<dl>
@@ -261,8 +261,10 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
261261
<li><a href="#changes"><span class=secno>7. </span>Changes</a>
262262
<ul class=toc>
263263
<li><a href="#changes-2012"><span class=secno>7.1. </span>Changes Since
264+
the 05 April 2022 Recommendation</a>
265+
<li><a href="#changes-2012"><span class=secno>7.2. </span>Changes Since
264266
the 19 June 2012 Recommendation</a>
265-
<li><a href="#changes-2010"><span class=secno>7.2. </span>Changes Since
267+
<li><a href="#changes-2010"><span class=secno>7.4. </span>Changes Since
266268
the 27 July 2010 Candidate Recommendation</a>
267269
</ul>
268270

@@ -604,20 +606,6 @@ <h3 id=error-handling><span class=secno>3.1. </span>Error Handling</h3>
604606
<p>For media queries that are not conforming user agents need to follow the
605607
rules described in this section.
606608

607-
<div class="correction proposed" id="c1">
608-
<span class="marker">Proposed Correction 1:</span>
609-
Clarify that the keywords ‘<code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’ should not be treated as unknown media types,
610-
but as syntax errors when used in place of media types.
611-
612-
<p>The reasoning for this change can be found in <a href="https://lists.w3.org/Archives/Public/www-style/2013May/0783.html">the minutes of the 2013-05-30 CSS WG teleconference</a>
613-
and in the emails referenced therefrom.
614-
<details>
615-
<summary>This change has tests</summary>
616-
<a href="https://github.com/web-platform-tests/wpt/commit/ea1821d4bd24ed1e859db03571cca8e783dbf957">Tests for this change</a> have been added to <abbr title="Web Platform Tests">WPT</abbr>.
617-
The results can be viewed at <a href="https://wpt.fyi/results/css/mediaqueries?q=mq-invalid-media-type-0">wpt.fyi</a>.
618-
</details>
619-
</div>
620-
621609
<div class="correction" id="c2">
622610
<span class="marker">Candidate Correction 2:</span>
623611
Require that ‘<code>layer</code>’ is also to not be treated as an unknown media type,
@@ -638,10 +626,10 @@ <h3 id=error-handling><span class=secno>3.1. </span>Error Handling</h3>
638626
<p><strong>Unknown media types.</strong> Unknown media types evaluate to
639627
false. Effectively, they are treated identically to known media types
640628
that do not match the media type of the device.
641-
<ins cite="#c1">However, an exception is made for media types <ins cite=#c2><code>layer</code>’, </ins><code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’.
629+
However, an exception is made for media types <ins cite=#c2><code>layer</code>’, </ins><code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’.
642630
Even though they do match the IDENT production,
643631
they must not be treated as unknown media types,
644-
but rather trigger the malformed query clause.</ins></p>
632+
but rather trigger the malformed query clause.</p>
645633

646634
<ins cite=#c2>
647635
<p class=note>
@@ -650,20 +638,18 @@ <h3 id=error-handling><span class=secno>3.1. </span>Error Handling</h3>
650638
when used in the <code>@import url(…) layer;</code> syntax
651639
for the sake of <a href="https://www.w3.org/TR/css-cascade-5/#layering">cascade layers</a>.
652640
See <a href="biblio-css-cascade-5">[CSS-CASCADE-5]</a>.
653-
<ins>
641+
</p></ins>
654642

655643
<div class=example>
656644
<p>The media query "<code>unknown</code>" will evaluate to false, unless
657645
<code>unknown</code> is actually a supported media type. Similarly,
658646
"<code>not unknown</code>" will evaluate to true.</p>
659647
</div>
660648

661-
<ins cite="#c1">
662649
<div class="example">
663650
<p>The following is a malformed media query because it uses ‘<code>only</code>’ and ‘<code>or</code>’ as media types.</p>
664651
<pre><code>@media only and or { … }</code></pre>
665652
</div>
666-
</ins>
667653

668654
<p class=note>Unknown media types are distinct from media types that do
669655
not actually match the IDENT production. Those fall under the malformed
@@ -1194,19 +1180,50 @@ <h3 id=resolution0><span class=secno>6.1. </span>Resolution</h3>
11941180

11951181
<h2 id=changes><span class=secno>7. </span>Changes</h2>
11961182

1197-
<h3 id=changes-2012><span class=secno>7.1. </span>Changes Since the 19 June 2012
1183+
<h3 id=changes-2022><span class=secno>7.1. </span>Changes Since the 05 April 2022
11981184
Recommendation</h3>
11991185

1200-
<p>Candidate and Proposed Corrections were introduced:
1186+
An earlier Proposed Correction was normatively incorporated into the Recommendation:
12011187
<ul>
1202-
<li><a href="#c1">Proposed Correction 1</a> in <a href="#error-handling">Section 3.1</a>:
1188+
<li id=c1>
1189+
Former “Proposed Correction 1” in <a href="#error-handling">Section 3.1</a>:
12031190
Clarify that the keywords ‘<code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’ should not be treated as unknown media types,
12041191
but as syntax errors when used in place of media types.
12051192

1206-
<li><a href="#c2">Candidate Correction 2</a> in <a href="#error-handling">Section 3.1</a>:
1193+
<blockquote>
1194+
<p>Unknown media types evaluate to
1195+
false. Effectively, they are treated identically to known media types
1196+
that do not match the media type of the device.
1197+
<ins>However, an exception is made for media types ‘<code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’.
1198+
Even though they do match the IDENT production,
1199+
they must not be treated as unknown media types,
1200+
but rather trigger the malformed query clause.</ins></p>
1201+
</blockquote>
1202+
1203+
<p>
1204+
The reasoning for this change can be found in <a href="https://lists.w3.org/Archives/Public/www-style/2013May/0783.html">the minutes of the 2013-05-30 CSS WG teleconference</a>
1205+
and in the emails referenced therefrom.
1206+
1207+
<p>
1208+
<a href="https://github.com/web-platform-tests/wpt/commit/ea1821d4bd24ed1e859db03571cca8e783dbf957">Tests for this change</a> have been added to <abbr title="Web Platform Tests">WPT</abbr>.
1209+
The results can be viewed at <a href="https://wpt.fyi/results/css/mediaqueries?q=mq-invalid-media-type-0">wpt.fyi</a>.
1210+
</ul>
1211+
1212+
<p>A Proposed Correction was introduced:
1213+
<ul>
1214+
<li><a href="#c2">Proposed Correction 2</a> in <a href="#error-handling">Section 3.1</a>:
12071215
Require that ‘<code>layer</code>’ is also to not be treated as an unknown media type,
12081216
but as a syntax errors when used in place of media types.
1217+
</ul>
12091218

1219+
<h3 id=changes-2012><span class=secno>7.2. </span>Changes Since the 19 June 2012
1220+
Recommendation</h3>
1221+
1222+
<p>Proposed Corrections were introduced:
1223+
<ul>
1224+
<li><a href="#c1">Proposed Correction 1</a> in <a href="#error-handling">Section 3.1</a>:
1225+
Clarify that the keywords ‘<code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’ should not be treated as unknown media types,
1226+
but as syntax errors when used in place of media types.
12101227
</ul>
12111228

12121229
<p>A handful of editorial and markup corrections were also made:
@@ -1242,7 +1259,7 @@ <h3 id=changes-2012><span class=secno>7.1. </span>Changes Since the 19 June 2012
12421259
<li>Various links throughout the specification were updated from http to https.
12431260
</ul>
12441261

1245-
<h3 id=changes-2010><span class=secno>7.2. </span>Changes Since the 27 July
1262+
<h3 id=changes-2010><span class=secno>7.3. </span>Changes Since the 27 July
12461263
2010 Candidate Recommendation</h3>
12471264

12481265
<p>The following changes were made to this specification since the <a

0 commit comments

Comments
 (0)