Skip to content

Commit ff44bed

Browse files
committed
Merge branch 'master' of https://github.com/w3c/csswg-drafts
2 parents da3d04b + 7c4587a commit ff44bed

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

mediaqueries/Overview.bs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Media Types</h3>
316316
but the definition of <a>media types</a> as mutually exclusive
317317
makes it difficult to use them in a reasonable manner;
318318
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'.
320320

321321
As such, the following <a>media types</a> are defined for use in <a>media queries</a>:
322322

@@ -409,7 +409,7 @@ Media Features</h3>
409409
(omitting the colon and value)
410410
to evaluate the feature in a <a>boolean context</a>.
411411
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.
413413

414414
<li>
415415
<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>
450450
but the common factor is that there's no intrinsic “order” to them--
451451
none of the values are “less than” or “greater than” each other.
452452

453-
“Range” media features like 'width', on the other hand,
453+
“Range” media features like '@media/width', on the other hand,
454454
take their values from a range.
455455
Any two values can be compared to see which is lesser and which is greater.
456456

@@ -507,10 +507,10 @@ Evaluating Media Features in a Boolean Context</h4>
507507
</div>
508508

509509
<div class='example'>
510-
Some numeric <a>media features</a>, like 'width',
510+
Some numeric <a>media features</a>, like '@media/width',
511511
are rarely if ever useful to evaluate in a <a>boolean context</a>,
512512
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:
514514
''(color)'' is identical to ''(color > 0)'',
515515
indicating that the device is capable of displaying color at all.
516516
</div>
@@ -668,9 +668,9 @@ Using “min-” and “max-” Prefixes On Range Features</h4>
668668
<div class='example'>
669669
For example,
670670
''(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>,
672672
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,
674674
as it accepts the values ''0'' and ''1''.)
675675
</div>
676676

@@ -943,12 +943,12 @@ Error Handling</h3>
943943
</div>
944944

945945
<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
947947
and is therefore turned into ''not all''.
948948
</div>
949949

950950
<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:
952952

953953
<pre>@media (min-width: -100px) { … }</pre>
954954
</div>
@@ -982,7 +982,7 @@ Error Handling</h3>
982982
Viewport/Page Dimensions Media Features</h2>
983983

984984
<h3 id="width">
985-
Width: the 'width' feature</h3>
985+
Width: the '@media/width' feature</h3>
986986

987987
<pre class='descdef mq'>
988988
Name: width
@@ -1026,7 +1026,7 @@ Width: the 'width' feature</h3>
10261026

10271027

10281028
<h3 id="height">
1029-
Height: the 'height' feature</h3>
1029+
Height: the '@media/height' feature</h3>
10301030

10311031
<pre class='descdef mq'>
10321032
Name: height
@@ -1035,7 +1035,7 @@ Height: the 'height' feature</h3>
10351035
Type: range
10361036
</pre>
10371037

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.
10391039
For continuous media, this is the height of the viewport including the size of a rendered scroll bar (if any).
10401040
For paged media, this is the height of the page box.
10411041

@@ -1053,8 +1053,8 @@ Aspect-Ratio: the 'aspect-ratio' feature</h3>
10531053
Type: range
10541054
</pre>
10551055

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.
10581058

10591059
The <dfn type>&lt;ratio></dfn> value type is a positive (not zero or negative)
10601060
<<integer>> followed by optional whitespace, followed by a solidus ('/'),
@@ -1076,8 +1076,8 @@ Orientation: the 'orientation' feature</h3>
10761076
<dl dfn-type=value dfn-for="@media/orientation">
10771077
<dt><dfn>portrait</dfn>
10781078
<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.
10811081
<dt><dfn>landscape</dfn>
10821082
<dd>Otherwise 'orientation' is ''landscape''.
10831083
</dl>
@@ -1207,7 +1207,7 @@ Display Type: the 'scan' feature</h3>
12071207
</div>
12081208

12091209
<h3 id="grid">
1210-
Detecting Console Displays: the 'grid' feature</h3>
1210+
Detecting Console Displays: the '@media/grid' feature</h3>
12111211

12121212
<pre class='descdef mq'>
12131213
Name: grid
@@ -1216,7 +1216,7 @@ Detecting Console Displays: the 'grid' feature</h3>
12161216
Type: discrete
12171217
</pre>
12181218

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.
12201220
If the output device is grid-based
12211221
(e.g., a “tty” terminal, or a phone display with only one fixed font),
12221222
the value will be 1.
@@ -1265,7 +1265,7 @@ Display Update Frequency: the 'update' feature</h3>
12651265
<dd>
12661266
The layout may change dynamically according to the usual rules of CSS,
12671267
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.
12691269
Example: E-ink screens or severely under-powered devices.
12701270

12711271
<dt><dfn>fast</dfn>
@@ -1374,7 +1374,7 @@ Color Media Features</h2>
13741374

13751375

13761376
<h3 id="color">
1377-
Color Depth: the 'color' feature</h3>
1377+
Color Depth: the '@media/color' feature</h3>
13781378

13791379
<pre class='descdef mq'>
13801380
Name: color
@@ -1383,7 +1383,7 @@ Color Depth: the 'color' feature</h3>
13831383
Type: range
13841384
</pre>
13851385

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.
13871387
If the device is not a color device, the value is zero.
13881388

13891389
Negative <<integer>>s are invalid.
@@ -1801,7 +1801,7 @@ All Available Interaction Capabilities: the 'any-pointer' and 'any-hover' featur
18011801
In the case of 'any-pointer', more than one of the values can match,
18021802
if different pointing devices have different characteristics.
18031803

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,
18051805
or there are no pointing devices at all.
18061806

18071807
<div class="note">
@@ -2096,7 +2096,7 @@ Appendix A: Deprecated Media Features</h2>
20962096
as specified.
20972097

20982098
<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>
21002100
should be used, rather than 'device-width', 'device-height' and
21012101
'device-aspect-ratio', which refer to the physical size of the the device
21022102
regardless of how much space is available for the document being laid out. The

0 commit comments

Comments
 (0)