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
Copy file name to clipboardExpand all lines: mediaqueries/Overview.bs
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -316,7 +316,7 @@ Media Types</h3>
316
316
but the definition of <a>media types</a> as mutually exclusive
317
317
makes it difficult to use them in a reasonable manner;
318
318
instead, their exclusive aspects are better expressed as <a>media features</a>
319
-
such as 'grid' or 'scan'.
319
+
such as '@media/grid' or 'scan'.
320
320
321
321
As such, the following <a>media types</a> are defined for use in <a>media queries</a>:
322
322
@@ -409,7 +409,7 @@ Media Features</h3>
409
409
(omitting the colon and value)
410
410
to evaluate the feature in a <a>boolean context</a>.
411
411
This is a convenient shorthand for features that have a reasonable value representing 0 or “none”.
412
-
For example, ''(color)'' is true is the 'color'<a>media feature</a> is non-zero.
412
+
For example, ''(color)'' is true is the '@media/color'<a>media feature</a> is non-zero.
413
413
414
414
<li>
415
415
<a>Media features</a> with “range” type can be written in a <a>range context</a>,
@@ -450,7 +450,7 @@ Media Feature Types: “range” and “discrete”</h4>
450
450
but the common factor is that there's no intrinsic “order” to them--
451
451
none of the values are “less than” or “greater than” each other.
452
452
453
-
“Range” media features like 'width', on the other hand,
453
+
“Range” media features like '@media/width', on the other hand,
454
454
take their values from a range.
455
455
Any two values can be compared to see which is lesser and which is greater.
456
456
@@ -507,10 +507,10 @@ Evaluating Media Features in a Boolean Context</h4>
507
507
</div>
508
508
509
509
<div class='example'>
510
-
Some numeric <a>media features</a>, like 'width',
510
+
Some numeric <a>media features</a>, like '@media/width',
511
511
are rarely if ever useful to evaluate in a <a>boolean context</a>,
512
512
as their values are almost always greater than zero.
513
-
Others, like 'color', have meaningful zero values:
513
+
Others, like '@media/color', have meaningful zero values:
514
514
''(color)'' is identical to ''(color > 0)'',
515
515
indicating that the device is capable of displaying color at all.
516
516
</div>
@@ -668,9 +668,9 @@ Using “min-” and “max-” Prefixes On Range Features</h4>
668
668
<div class='example'>
669
669
For example,
670
670
''(min-grid: 1)'' is invalid,
671
-
because 'grid' is a “discrete” <a>media feature</a>,
671
+
because '@media/grid' is a “discrete” <a>media feature</a>,
672
672
and so doesn't accept the prefixes.
673
-
(Even though the 'grid'<a>media feature</a> appears to be numeric,
673
+
(Even though the '@media/grid'<a>media feature</a> appears to be numeric,
674
674
as it accepts the values ''0'' and ''1''.)
675
675
</div>
676
676
@@ -943,12 +943,12 @@ Error Handling</h3>
943
943
</div>
944
944
945
945
<div class="example">
946
-
The media query ''(color:20example)'' specifies an unknown value for the 'color' media feature
946
+
The media query ''(color:20example)'' specifies an unknown value for the '@media/color' media feature
947
947
and is therefore turned into ''not all''.
948
948
</div>
949
949
950
950
<div class="example">
951
-
This media query is turned into ''not all'' because negative lengths are not allowed for the 'width' media feature:
951
+
This media query is turned into ''not all'' because negative lengths are not allowed for the '@media/width' media feature:
952
952
953
953
<pre>@media (min-width: -100px) { … }</pre>
954
954
</div>
@@ -982,7 +982,7 @@ Error Handling</h3>
982
982
Viewport/Page Dimensions Media Features</h2>
983
983
984
984
<h3 id="width">
985
-
Width: the 'width' feature</h3>
985
+
Width: the '@media/width' feature</h3>
986
986
987
987
<pre class='descdef mq'>
988
988
Name: width
@@ -1026,7 +1026,7 @@ Width: the 'width' feature</h3>
1026
1026
1027
1027
1028
1028
<h3 id="height">
1029
-
Height: the 'height' feature</h3>
1029
+
Height: the '@media/height' feature</h3>
1030
1030
1031
1031
<pre class='descdef mq'>
1032
1032
Name: height
@@ -1035,7 +1035,7 @@ Height: the 'height' feature</h3>
1035
1035
Type: range
1036
1036
</pre>
1037
1037
1038
-
The 'height' media feature describes the height of the targeted display area of the output device.
1038
+
The '@media/height' media feature describes the height of the targeted display area of the output device.
1039
1039
For continuous media, this is the height of the viewport including the size of a rendered scroll bar (if any).
1040
1040
For paged media, this is the height of the page box.
1041
1041
@@ -1053,8 +1053,8 @@ Aspect-Ratio: the 'aspect-ratio' feature</h3>
1053
1053
Type: range
1054
1054
</pre>
1055
1055
1056
-
The 'aspect-ratio' media feature is defined as the ratio of the value of the 'width' media feature
1057
-
to the value of the 'height' media feature.
1056
+
The 'aspect-ratio' media feature is defined as the ratio of the value of the '@media/width' media feature
1057
+
to the value of the '@media/height' media feature.
1058
1058
1059
1059
The <dfn type><ratio></dfn> value type is a positive (not zero or negative)
1060
1060
<<integer>> followed by optional whitespace, followed by a solidus ('/'),
@@ -1076,8 +1076,8 @@ Orientation: the 'orientation' feature</h3>
1076
1076
<dl dfn-type=value dfn-for="@media/orientation">
1077
1077
<dt><dfn>portrait</dfn>
1078
1078
<dd>The 'orientation' media feature is ''portrait''
1079
-
when the value of the 'height' media feature is greater than or equal to
1080
-
the value of the 'width' media feature.
1079
+
when the value of the '@media/height' media feature is greater than or equal to
1080
+
the value of the '@media/width' media feature.
1081
1081
<dt><dfn>landscape</dfn>
1082
1082
<dd>Otherwise 'orientation' is ''landscape''.
1083
1083
</dl>
@@ -1207,7 +1207,7 @@ Display Type: the 'scan' feature</h3>
1207
1207
</div>
1208
1208
1209
1209
<h3 id="grid">
1210
-
Detecting Console Displays: the 'grid' feature</h3>
1210
+
Detecting Console Displays: the '@media/grid' feature</h3>
1211
1211
1212
1212
<pre class='descdef mq'>
1213
1213
Name: grid
@@ -1216,7 +1216,7 @@ Detecting Console Displays: the 'grid' feature</h3>
1216
1216
Type: discrete
1217
1217
</pre>
1218
1218
1219
-
The 'grid' media feature is used to query whether the output device is grid or bitmap.
1219
+
The '@media/grid' media feature is used to query whether the output device is grid or bitmap.
1220
1220
If the output device is grid-based
1221
1221
(e.g., a “tty” terminal, or a phone display with only one fixed font),
1222
1222
the value will be 1.
@@ -1265,7 +1265,7 @@ Display Update Frequency: the 'update' feature</h3>
1265
1265
<dd>
1266
1266
The layout may change dynamically according to the usual rules of CSS,
1267
1267
but the output device is not able to render or display changes quickly enough
1268
-
for them to be percieved as a smooth animation.
1268
+
for them to be perceived as a smooth animation.
1269
1269
Example: E-ink screens or severely under-powered devices.
1270
1270
1271
1271
<dt><dfn>fast</dfn>
@@ -1374,7 +1374,7 @@ Color Media Features</h2>
1374
1374
1375
1375
1376
1376
<h3 id="color">
1377
-
Color Depth: the 'color' feature</h3>
1377
+
Color Depth: the '@media/color' feature</h3>
1378
1378
1379
1379
<pre class='descdef mq'>
1380
1380
Name: color
@@ -1383,7 +1383,7 @@ Color Depth: the 'color' feature</h3>
1383
1383
Type: range
1384
1384
</pre>
1385
1385
1386
-
The 'color' media feature describes the number of bits per color component of the output device.
1386
+
The '@media/color' media feature describes the number of bits per color component of the output device.
1387
1387
If the device is not a color device, the value is zero.
1388
1388
1389
1389
Negative <<integer>>s are invalid.
@@ -1801,7 +1801,7 @@ All Available Interaction Capabilities: the 'any-pointer' and 'any-hover' featur
1801
1801
In the case of 'any-pointer', more than one of the values can match,
1802
1802
if different pointing devices have different characteristics.
1803
1803
1804
-
'any-pointer' and 'any-hover' must only match ''none'' if <em>all</em> of the pointing devices would match ''none'' for the corresponding query,
1804
+
'any-pointer' and 'any-hover' must only match ''any-pointer/none'' if <em>all</em> of the pointing devices would match ''pointer/none'' for the corresponding query,
1805
1805
or there are no pointing devices at all.
1806
1806
1807
1807
<div class="note">
@@ -2096,7 +2096,7 @@ Appendix A: Deprecated Media Features</h2>
2096
2096
as specified.
2097
2097
2098
2098
<p class="note">To query for the size of the viewport (or the page box
2099
-
on page media), the 'width', 'height' and 'aspect-ratio'<a>media features</a>
2099
+
on page media), the '@media/width', '@media/height' and 'aspect-ratio'<a>media features</a>
2100
2100
should be used, rather than 'device-width', 'device-height' and
2101
2101
'device-aspect-ratio', which refer to the physical size of the the device
2102
2102
regardless of how much space is available for the document being laid out. The
0 commit comments