Skip to content

Commit 9fce23a

Browse files
committed
[mediaqueries-4] bikeshed disambiguation
1 parent 8de4b90 commit 9fce23a

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

mediaqueries-4/Overview.bs

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Abstract:
2020
Abstract: Media Queries Level 4 describes the mechanism and syntax of media queries, media types, and media features. It extends and supersedes the features defined in Media Queries Level 3.
2121
Ignored Terms: min-resolution, max-resolution, none, view-mode, mediaText, CSSOMString
2222
Link Defaults: css-break-3 (property) break-inside
23-
Link Defaults: css-cascade-3 (at-rule) @import
2423
Can I Use URL: https://drafts.csswg.org/mediaqueries-4/
2524
Can I Use URL: http://drafts.csswg.org/mediaqueries-4/
2625
Can I Use URL: https://drafts.csswg.org/mediaqueries/
@@ -36,6 +35,14 @@ Ignore Can I Use URL Failure: http://www.w3.org/TR/mediaqueries-4/
3635

3736
<pre class=link-defaults>
3837
spec:css-values-3; type:value; text:in
38+
spec:css-values-3; type:value; text:cm
39+
spec:css-values-3; type:value; text:px
40+
spec:css-values-3; type:value; text:em
41+
spec:css-values-3; type:type; text:<dimension>
42+
spec:css-values-3; type:type; text:<ident>
43+
spec:css-values-3; type:grammar; text:|
44+
spec:css-values-3; type:grammar; text:?
45+
spec:css-conditional-3; type:at-rule; text:@media
3946
</pre>
4047

4148
<pre class=biblio>
@@ -125,23 +132,23 @@ Introduction</h2>
125132
Module interactions</h3>
126133

127134
This module replaces and extends the Media Queries, Media Type and Media Features
128-
defined in [[!CSS21]] sections 7 and in [[!MEDIAQ]].
135+
defined in [[!CSS2]] sections 7 and in [[!MEDIAQUERIES-3]].
129136

130137
<h3 id="values">
131138
Values</h3>
132139

133140
Value types not defined in this specification, such as <<integer>>,
134-
<<number>> or <<resolution>>, are defined in [[!CSS3VAL]]. Other CSS
141+
<<number>> or <<resolution>>, are defined in [[!CSS-VALUES-3]]. Other CSS
135142
modules may expand the definitions of these value types.
136143

137144
<h3 id="units">
138145
Units</h3>
139146

140147
The units used in media queries are the same as in other parts of CSS, as
141-
defined in [[!CSS3VAL]]. For example, the pixel unit represents CSS pixels and
148+
defined in [[!CSS-VALUES-3]]. For example, the pixel unit represents CSS pixels and
142149
not physical pixels.
143150

144-
<a spec="css-values">Relative length</a> units in media queries are based on the <a>initial value</a>, which means
151+
<a spec="css-values-3">Relative length</a> units in media queries are based on the <a>initial value</a>, which means
145152
that units are never based on results of declarations. <span class=note>For example, in HTML,
146153
the ''em'' unit is relative to the <a>initial value</a> of 'font-size',
147154
defined by the user agent or the user's preferences,
@@ -672,7 +679,7 @@ Evaluating Media Features in a Range Context</h4>
672679
</div>
673680

674681
<div class=advisement>
675-
This is a behavior change compared to Media Queries Level 3 [[MEDIAQ]],
682+
This is a behavior change compared to Media Queries Level 3 [[MEDIAQUERIES-3]],
676683
where negative values on these properties caused a syntax error.
677684
In level 3, syntax errors—including forbidden values—resulted in the entire <a>media query</a> being false,
678685
rather than the ''unknown'' treatment defined in this level.
@@ -829,7 +836,7 @@ Syntax</h2>
829836

830837
Informal descriptions of the media query syntax appear in the prose and railroad diagrams in previous sections.
831838
The formal media query syntax is described in this section,
832-
with the rule/property grammar syntax defined in [[!CSS3SYN]] and [[!CSS3VAL]].
839+
with the rule/property grammar syntax defined in [[!CSS-SYNTAX-3]] and [[!CSS-VALUES-3]].
833840

834841
To parse a <dfn>&lt;media-query-list></dfn> production,
835842
<a>parse a comma-separated list of component values</a>,
@@ -841,7 +848,7 @@ Syntax</h2>
841848

842849
Note: This definition of <<media-query-list>> parsing intentionally accepts an empty list.
843850

844-
Note: As per [[!CSS3SYN]], tokens are <a>ASCII case-insensitive</a>.
851+
Note: As per [[!CSS-SYNTAX-3]], tokens are <a>ASCII case-insensitive</a>.
845852

846853
<pre>
847854
<dfn>&lt;media-query></dfn> = <<media-condition>>
@@ -1081,10 +1088,10 @@ Width: the '@media/width' feature</h3>
10811088

10821089
The '@media/width' media feature describes the width of the targeted display area of the output device.
10831090
For [=continuous media=], this is the width of the viewport
1084-
(as described by CSS2, section 9.1.1 [[!CSS21]])
1091+
(as described by CSS2, section 9.1.1 [[!CSS2]])
10851092
including the size of a rendered scroll bar (if any).
10861093
For [=paged media=], this is the width of the page box
1087-
(as described by CSS2, section 13.2 [[!CSS21]]).
1094+
(as described by CSS2, section 13.2 [[!CSS2]]).
10881095

10891096
<<length>>s are interpreted according to [[#units]].
10901097

0 commit comments

Comments
 (0)