Skip to content

Commit c663a1e

Browse files
committed
clarify the (media-feature) feature; remove index as it is useless
1 parent 7d50bcb commit c663a1e

2 files changed

Lines changed: 20 additions & 35 deletions

File tree

css3-mediaqueries/Overview.html

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
<body>
2121
<div class=head> <!--begin-logo-->
2222
<p><a href="http://www.w3.org/"><img alt=W3C height=48
23-
src="http://www.w3.org/Icons/w3c_home" width=72></a> <!--end-logo--></p>
23+
src="http://www.w3.org/Icons/w3c_home" width=72></a> <!--end-logo-->
2424

2525
<h1 id=media-queries>Media Queries</h1>
2626

27-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 26 August 2008</h2>
27+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 1 September 2008</h2>
2828

2929
<dl>
3030
<dt>This version:
3131

3232
<dd><a
33-
href="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080826/">http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080826/</a>
33+
href="http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080901/">http://www.w3.org/TR/2008/ED-css3-mediaqueries-20080901/</a>
3434

3535
<dt>Latest version:
3636

@@ -167,7 +167,7 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
167167
there must one or more additional UAs which can also pass those
168168
equivalent tests in the same way for the purpose of interoperability.
169169
The equivalent tests must be made publicly available for the purposes
170-
of peer review.</p>
170+
of peer review.
171171

172172
<dt>implementation
173173

@@ -192,10 +192,10 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
192192
<p>A minimum of another three months of the CR period must elapse. That
193193
is, this specification will not exit CR before 01 September 2007. When
194194
the specification exits CR, an implementation report will be published.
195-
At this point, no such report exists.</p>
195+
At this point, no such report exists.
196196

197197
<li>
198-
<p>The specified technology must not be harmful for accessibility.</p>
198+
<p>The specified technology must not be harmful for accessibility.
199199
</ol>
200200

201201
<p>W3C Members can also send comments directly to the CSS Working Group.
@@ -274,8 +274,6 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
274274

275275
<li class=no-num><a href="#other-references">Other references</a>
276276
</ul>
277-
278-
<li class=no-num><a href="#index">Index</a>
279277
</ul>
280278
<!--end-toc-->
281279

@@ -669,7 +667,7 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
669667

670668
<p>Is dropped because the &lsquo;<code
671669
class=css>orientation</code>&rsquo; feature does not accept the
672-
&lsquo;<code class=css>min-</code>&rsquo; prefix.</p>
670+
&lsquo;<code class=css>min-</code>&rsquo; prefix.
673671
</div>
674672

675673
<li>
@@ -685,7 +683,7 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
685683

686684
<div class=example>
687685
<p>This media query is invalid because negative lengths are not allowed
688-
for the &lsquo;<code class=css>width</code>&rsquo; media feature:</p>
686+
for the &lsquo;<code class=css>width</code>&rsquo; media feature:
689687

690688
<pre>@media (min-width: -100px) { ... }</pre>
691689
</div>
@@ -697,7 +695,7 @@ <h3 id=error><span class=secno>3.1 </span>Error Handling</h3>
697695
href="http://www.w3.org/TR/CSS21/syndata.html#block">the rules for
698696
matching pairs</a> of (), [], {}, "", and &#39;&#39;, and correctly
699697
handling escapes. Media queries with unexpected tokens are ignored. <a
700-
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a></p>
698+
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
701699

702700
<div class=example>
703701
<pre>@media (example, all,), speech { /* only applicable to speech devices */ }
@@ -748,14 +746,18 @@ <h2 id=media1><span class=secno>4. </span>Media features</h2>
748746
features, on the other hand, can also be used without a value. For a
749747
media feature <var>feature</var>, <code>(<var>feature</var>)</code> will
750748
evaluate to true if <code>(<var>feature</var>:<var>x</var>)</code> will
751-
evaluate to true for a value <var>x</var> other than zero. Media features
752-
that are min/max prefixed are treated in an identical way.
749+
evaluate to true for a value <var>x</var> other than zero, including e.g.
750+
<code>0</code>, <code>0px</code>, and <code>0em</code>. Media features
751+
that are prefixed by min/max cannot be used without a value. When a media
752+
feature prefixed with min/max is used without a value it makes the media
753+
query malformed.
753754

754755
<li>Properties may accept more complex values, e.g., calculations that
755756
involve several other values. Media features only accept single values:
756757
one keyword, one number, or a number with a unit identifier. (The only
757758
exceptions are the &lsquo;<code class=css>aspect-ratio</code>&rsquo; and
758759
&lsquo;<code class=css>device-aspect-ratio</code>&rsquo; media features.)
760+
759761
</ul>
760762

761763
<div class=example>
@@ -1309,19 +1311,3 @@ <h3 class=no-num id=other-references>Other references</h3>
13091311
<!---->
13101312
</dl>
13111313
<!--end-informative-->
1312-
1313-
<h2 class=no-num id=index>Index</h2>
1314-
<!--begin-index-->
1315-
1316-
<ul class=indexlist>
1317-
<li>expressions, <a href="#expressions" title=expressions>#</a>
1318-
1319-
<li>media descriptor
1320-
<ul>
1321-
<li>parsing of, <a href="#parse" title="media descriptor parsing
1322-
of">#</a>
1323-
</ul>
1324-
1325-
<li>media features, <a href="#media" title="media features">#</a>
1326-
</ul>
1327-
<!--end-index-->

css3-mediaqueries/Overview.src.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,11 @@ <h2 id="media1">Media features</h2>
600600
features, on the other hand, can also be used without a value. For a media
601601
feature <var>feature</var>, <code>(<var>feature</var>)</code> will evaluate
602602
to true if <code>(<var>feature</var>:<var>x</var>)</code> will evaluate to
603-
true for a value <var>x</var> other than zero. Media features that are
604-
min/max prefixed are treated in an identical way.</li>
603+
true for a value <var>x</var> other than zero, including e.g.
604+
<code>0</code>, <code>0px</code>, and <code>0em</code>. Media features that
605+
are prefixed by min/max cannot be used without a value. When a media feature
606+
prefixed with min/max is used without a value it makes the media query
607+
malformed.</li>
605608

606609
<li>Properties may accept more complex values, e.g., calculations that
607610
involve several other values. Media features only accept single
@@ -1163,9 +1166,5 @@ <h3 class="no-num" id="other-references">Other references</h3>
11631166
<p>[Here will be inserted the file "informative.inc"]</p>
11641167
<!--end-informative-->
11651168

1166-
1167-
<h2 class="no-num" id="index">Index</h2>
1168-
<!--index-->
1169-
11701169
</body>
11711170
</html>

0 commit comments

Comments
 (0)