Skip to content

Commit 46f32fc

Browse files
committed
Define the <supports-condition> production.
1 parent 5a6acbd commit 46f32fc

2 files changed

Lines changed: 37 additions & 26 deletions

File tree

css-conditional/Overview.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
rel=dcterms.rights>
1313
<meta content="CSS Conditional Rules Module Level 3" name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2014-12-26 name=dcterms.date>
15+
<meta content=2015-03-19 name=dcterms.date>
1616
<meta content="L. David Baron" name=dcterms.creator>
1717
<meta content=W3C name=dcterms.publisher>
1818
<meta content="http://dev.w3.org/csswg/css3-conditional/"
@@ -34,13 +34,13 @@
3434
<h1 class=p-name>CSS Conditional Rules Module Level 3</h1>
3535

3636
<h2 class="no-num no-toc">Editor's Draft <span class=dt-updated><span
37-
class=value-title title=20141226>26 December 2014</span></span></h2>
37+
class=value-title title=20150319>19 March 2015</span></span></h2>
3838

3939
<dl>
4040
<dt>This version:
4141

4242
<dd><a class=u-url href="http://dev.w3.org/csswg/css3-conditional/">
43-
http://www.w3.org/TR/2014/ED-css3-conditional-20141226/</a>
43+
http://www.w3.org/TR/2015/ED-css3-conditional-20150319/</a>
4444

4545
<dt>Latest version:
4646

@@ -89,7 +89,7 @@ <h2 class="no-num no-toc">Editor's Draft <span class=dt-updated><span
8989
<!--begin-copyright-->
9090
<p class=copyright><a
9191
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
92-
rel=license>Copyright</a> © 2014 <a href="http://www.w3.org/"><abbr
92+
rel=license>Copyright</a> © 2015 <a href="http://www.w3.org/"><abbr
9393
title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a
9494
href="http://www.csail.mit.edu/"><abbr
9595
title="Massachusetts Institute of Technology">MIT</abbr></a>, <a
@@ -710,6 +710,12 @@ <h2 id=at-supports><span class=secno>6. </span>Feature queries: the ‘<a
710710
;
711711
</pre>
712712

713+
<p>The <dfn data-dfn-type=type data-export=data-export
714+
id=ltsupports-condition>&lt;supports-condition></dfn> production is
715+
defined as matching the <a
716+
href="#supports_condition"><code>supports_condition</code></a> grammar,
717+
defined above.
718+
713719
<p> Implementations <strong>must</strong> parse ‘<a
714720
href="#at-ruledef-supports"><code class=css>@supports</code></a>’ rules
715721
based on the above grammar, and when interpreting the above grammar,
@@ -1735,6 +1741,9 @@ <h2 class=no-num id=index>Index</h2>
17351741
<li>@supports, <a href="#at-ruledef-supports"
17361742
title="section 6."><strong>6.</strong></a>
17371743

1744+
<li>&lt;supports-condition>, <a href="#ltsupports-condition"
1745+
title="section 6."><strong>6.</strong></a>
1746+
17381747
<li>supports_condition, <a href="#supports_condition"
17391748
title="section 6."><strong>6.</strong></a>
17401749

css-conditional/Overview.src.html

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<style>.css::before, .css::after, .property::before, .property::after { content: none !important;}</style>
99
<link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
1010
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css">
11-
<script src="http://test.csswg.org/harness/annotate.js#css-conditional-3_dev"
11+
<script src="http://test.csswg.org/harness/annotate.js#css-conditional-3_dev"
1212
type="text/javascript" defer></script>
1313
</head>
1414
<body class="h-entry">
@@ -44,8 +44,8 @@ <h2 class="no-num no-toc">[LONGSTATUS] <span class="dt-updated"><span class="val
4444

4545
<dt>Feedback:</dt>
4646
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss3-conditional%5D%20feedback"
47-
>www-style@w3.org</a>
48-
with subject line &ldquo;<kbd>[css3-conditional]
47+
>www-style@w3.org</a>
48+
with subject line &ldquo;<kbd>[css3-conditional]
4949
<var>&hellip; message topic &hellip;</var></kbd>&rdquo;
5050
(<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/"
5151
>archives</a>)
@@ -63,7 +63,7 @@ <h2 class="no-num no-toc">[LONGSTATUS] <span class="dt-updated"><span class="val
6363
<h2 class="no-num no-toc" id="abstract">Abstract</h2>
6464

6565
<p>CSS is a language for describing the rendering of structured documents
66-
(such as HTML and XML) on screen, on paper, in speech, etc.
66+
(such as HTML and XML) on screen, on paper, in speech, etc.
6767
<span class="p-summary">
6868
This module
6969
contains the features of CSS for conditional processing of parts of
@@ -178,21 +178,21 @@ <h3 id="conventions">Document Conventions</h3>
178178
document are to be interpreted as described in RFC 2119.
179179
However, for readability, these words do not appear in all uppercase
180180
letters in this specification.
181-
181+
182182
<p>All of the text of this specification is normative except sections
183183
explicitly marked as non-normative, examples, and notes. [[!RFC2119]]</p>
184-
184+
185185
<p>Examples in this specification are introduced with the words “for example”
186186
or are set apart from the normative text with
187187
<code class="html">class="example"</code>, like this:
188-
188+
189189
<div class="example">
190190
<p>This is an example of an informative example.</p>
191191
</div>
192-
192+
193193
<p>Informative notes begin with the word “Note” and are set apart from the
194194
normative text with <code class="html">class="note"</code>, like this:
195-
195+
196196
<p class="note">Note, this is an informative note.</p>
197197

198198
<h2 id="processing">Processing of conditional group rules</h2>
@@ -268,7 +268,7 @@ <h2 id="contents-of">Contents of conditional group rules</h2>
268268
<p>In terms of the grammar, this specification defines the following
269269
productions for use in the grammar of conditional group rules:</p>
270270

271-
<p class=note>Note: Style rules are defined in grammars
271+
<p class=note>Note: Style rules are defined in grammars
272272
by the <code>ruleset</code> production.</p>
273273

274274
<pre><dfn>nested_statement</dfn>
@@ -281,7 +281,7 @@ <h2 id="contents-of">Contents of conditional group rules</h2>
281281
;</pre>
282282
<p>
283283
in which all the productions are defined in that grammar with the
284-
exception of <code>font_face_rule</code>
284+
exception of <code>font_face_rule</code>
285285
defined in [[!CSS3-FONTS]], <code>keyframes_rule</code> defined in
286286
[[!CSS3-ANIMATIONS]], and <code>media</code> and <code>supports_rule</code>
287287
defined in this specification.</p>
@@ -447,6 +447,8 @@ <h2 id="at-supports">Feature queries: the '@supports' rule</h2>
447447
;
448448
</pre>
449449

450+
<p>The <dfn data-dfn-type="type" data-export>&lt;supports-condition></dfn> production is defined as matching the <code>supports_condition</code> grammar, defined above.</p>
451+
450452
<p>
451453
Implementations <strong>must</strong> parse ''@supports'' rules
452454
based on the above grammar,
@@ -981,8 +983,8 @@ <h3 id="the-cssconditionrule-interface">
981983

982984
<ol>
983985
<li>Trim the given value of white space.
984-
<li>If the given value matches the grammar of the
985-
appropriate condition production for the given rule,
986+
<li>If the given value matches the grammar of the
987+
appropriate condition production for the given rule,
986988
replace the associated CSS condition with the given value.
987989
<li>Otherwise, do nothing.
988990
</ol>
@@ -1199,14 +1201,14 @@ <h3 id="cr-exit-criteria">CR Exit Criteria</h3>
11991201
products, there is no requirement that all features be implemented by
12001202
a single product. For the purposes of this criterion, we define the
12011203
following terms:
1202-
1204+
12031205
<dl>
12041206
<dt>independent <dd>each implementation must be developed by a
12051207
different party and cannot share, reuse, or derive from code
12061208
used by another qualifying implementation. Sections of code that
12071209
have no bearing on the implementation of this specification are
12081210
exempt from this requirement.
1209-
1211+
12101212
<dt>interoperable <dd>passing the respective test case(s) in the
12111213
official CSS test suite, or, if the implementation is not a Web
12121214
browser, an equivalent test. Every relevant test in the test
@@ -1217,25 +1219,25 @@ <h3 id="cr-exit-criteria">CR Exit Criteria</h3>
12171219
equivalent tests in the same way for the purpose of
12181220
interoperability. The equivalent tests must be made publicly
12191221
available for the purposes of peer review.
1220-
1222+
12211223
<dt>implementation <dd>a user agent which:
1222-
1224+
12231225
<ol class=inline>
12241226
<li>implements the specification.
1225-
1227+
12261228
<li>is available to the general public. The implementation may
12271229
be a shipping product or other publicly available version
1228-
(i.e., beta version, preview release, or “nightly build”).
1230+
(i.e., beta version, preview release, or “nightly build”).
12291231
Non-shipping product releases must have implemented the
12301232
feature(s) for a period of at least one month in order to
12311233
demonstrate stability.
1232-
1234+
12331235
<li>is not experimental (i.e., a version specifically designed
12341236
to pass the test suite and is not intended for normal usage
12351237
going forward).
12361238
</ol>
12371239
</dl>
1238-
1240+
12391241
<p>The specification will remain Candidate Recommendation for at least
12401242
six months.
12411243

@@ -1319,4 +1321,4 @@ <h2 class="no-num" id="index">Index</h2>
13191321
sgml-local-ecat-files:nil
13201322
End:
13211323
-->
1322-
1324+

0 commit comments

Comments
 (0)