You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>For media queries that are not conforming user agents need to follow the
605
607
rules described in this section.
606
608
607
-
<divclass="correction proposed" id="c1">
608
-
<spanclass="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 <ahref="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
-
<ahref="https://github.com/web-platform-tests/wpt/commit/ea1821d4bd24ed1e859db03571cca8e783dbf957">Tests for this change</a> have been added to <abbrtitle="Web Platform Tests">WPT</abbr>.
617
-
The results can be viewed at <ahref="https://wpt.fyi/results/css/mediaqueries?q=mq-invalid-media-type-0">wpt.fyi</a>.
<p><strong>Unknown media types.</strong> Unknown media types evaluate to
639
627
false. Effectively, they are treated identically to known media types
640
628
that do not match the media type of the device.
641
-
<inscite="#c1">However, an exception is made for media types <inscite=#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 <inscite=#c2>‘<code>layer</code>’, </ins>‘<code>not</code>’, ‘<code>and</code>’, ‘<code>only</code>’, and ‘<code>or</code>’.
642
630
Even though they do match the IDENT production,
643
631
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>
<h3id=changes-2012><spanclass=secno>7.1. </span>Changes Since the 19 June 2012
1183
+
<h3id=changes-2022><spanclass=secno>7.1. </span>Changes Since the 05 April 2022
1198
1184
Recommendation</h3>
1199
1185
1200
-
<p>Candidate and Proposed Corrections were introduced:
1186
+
An earlier Proposed Correction was normatively incorporated into the Recommendation:
1201
1187
<ul>
1202
-
<li><ahref="#c1">Proposed Correction 1</a> in <ahref="#error-handling">Section 3.1</a>:
1188
+
<liid=c1>
1189
+
Former “Proposed Correction 1” in <ahref="#error-handling">Section 3.1</a>:
1203
1190
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,
1204
1191
but as syntax errors when used in place of media types.
1205
1192
1206
-
<li><ahref="#c2">Candidate Correction 2</a> in <ahref="#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 <ahref="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
+
<ahref="https://github.com/web-platform-tests/wpt/commit/ea1821d4bd24ed1e859db03571cca8e783dbf957">Tests for this change</a> have been added to <abbrtitle="Web Platform Tests">WPT</abbr>.
1209
+
The results can be viewed at <ahref="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><ahref="#c2">Proposed Correction 2</a> in <ahref="#error-handling">Section 3.1</a>:
1207
1215
Require that ‘<code>layer</code>’ is also to not be treated as an unknown media type,
1208
1216
but as a syntax errors when used in place of media types.
1217
+
</ul>
1209
1218
1219
+
<h3id=changes-2012><spanclass=secno>7.2. </span>Changes Since the 19 June 2012
1220
+
Recommendation</h3>
1221
+
1222
+
<p>Proposed Corrections were introduced:
1223
+
<ul>
1224
+
<li><ahref="#c1">Proposed Correction 1</a> in <ahref="#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.
1210
1227
</ul>
1211
1228
1212
1229
<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
1242
1259
<li>Various links throughout the specification were updated from http to https.
1243
1260
</ul>
1244
1261
1245
-
<h3id=changes-2010><spanclass=secno>7.2. </span>Changes Since the 27 July
1262
+
<h3id=changes-2010><spanclass=secno>7.3. </span>Changes Since the 27 July
1246
1263
2010 Candidate Recommendation</h3>
1247
1264
1248
1265
<p>The following changes were made to this specification since the <a
0 commit comments