8000 [css3-conditional] Added the ability to put functions into @supports,… · w3c/csswg-drafts@d3fcca2 · GitHub
Skip to content

Commit d3fcca2

Browse files
committed
[css3-conditional] Added the ability to put functions into @supports, for future extension purposes.
1 parent 5387622 commit d3fcca2

2 files changed

Lines changed: 31 additions & 21 deletions

File tree

css3-conditional/Overview.html

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
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=2012-10-09 name=dcterms.issued>
15+
<meta content=2012-10-10 name=dcterms.issued>
1616
<meta content="http://dev.w3.org/csswg/css3-conditional/"
1717
name=dcterms.creator>
1818
<meta content=W3C name=dcterms.publisher>
19-
<meta content="http://www.w3.org/TR/2012/ED-css3-conditional-20121009/"
19+
<meta content="http://www.w3.org/TR/2012/ED-css3-conditional-20121010/"
2020
name=dcterms.identifier>
2121
<link href="../default.css" rel=stylesheet type="text/css">
2222
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
@@ -29,13 +29,14 @@
2929

3030
<h1>CSS Conditional Rules Module Level 3</h1>
3131

32-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 9 October 2012</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 October
33+
2012</h2>
3334

3435
<dl>
3536
<dt>This version:
3637

37-
<dd><a href="http://www.w3.org/TR/2012/ED-css3-conditional-20121009/">
38-
http://www.w3.org/TR/2012/ED-css3-conditional-20121009/</a>
38+
<dd><a href="http://www.w3.org/TR/2012/ED-css3-conditional-20121010/">
39+
http://www.w3.org/TR/2012/ED-css3-conditional-20121010/</a>
3940

4041
<dt>Latest version:
4142

@@ -163,6 +164,9 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
163164
interoperable implementations are not found, it may be removed to advance
164165
the other features in this specification to Proposed Recommendation.
165166

167+
<li>The support for functions inside of ‘<code
168+
class=css>@supports</code>’ is at risk.
169+
166170
<li>The ‘<code class=css>@document</code>’ rule is at risk; if
167171
interoperable implementations are not found, it may be removed to advance
168172
the other features in this specification to Proposed Recommendation.
@@ -613,7 +617,7 @@ <h2 id=at-supports><span class=secno>6. </span>Feature queries: the
613617

614618
<dfn
615619
id="supports_declaration_condition">supports_declaration_condition</dfn>
616-
: '(' S* core_declaration ')' S*
620+
: '(' S* core_declaration ')' S* | FUNCTION S* [any|unused]* ')'
617621
;</pre>
618622

619623
<p>in which <code>core_declaration</code> is the production
@@ -636,12 +640,6 @@ <h2 id=at-supports><span class=secno>6. </span>Feature queries: the
636640
declarations cause the entire ‘<code class=css>@supports</code>’ rule
637641
to be ignored.
638642

639-
<p class=issue>Is any further allowance for forward-compatible parsing
640-
needed, for example, to allow additional features (such as, say, selector
641-
tests) to be added to the ‘<code class=css>@supports</code>’ rule? Or
642-
are these forward-compatible parsing rules the best solution for such
643-
future expansion anyway?
644-
645643
<p>Each of these grammar terms is associated with a boolean result, as
646644
follows:
647645

@@ -678,7 +676,7 @@ <h2 id=at-supports><span class=secno>6. </span>Feature queries: the
678676
<dt>supports_declaration_condition
679677

680678
<dd> The result is whether the CSS processor <a
681-
href="#support-definition">supports</a> the declaration.
679+
href="#support-definition">supports</a> the declaration or function.
682680
</dl>
683681

684682
<p>The condition of the ‘<code class=css>@supports</code>’ rule is the
@@ -838,6 +836,13 @@ <h3 id=support-definition><span class=secno>6.1. </span>Definition of
838836
it <strong>must not</strong> accept the declaration or claim support for
839837
it.
840838

839+
<p>A CSS processor is considered to <a
840+
href="#dfn-support"><i>support</i></a> a function (consisting of a
841+
function name and arguments) if it accepts that function (rather than
842+
discarding it as a parse error). If a processor does not implement, with a
843+
usable level of support, the value given, then it <strong>must
844+
not</strong> accept the function or claim support for it.
845+
841846
<p>These rules (and the equivalence between them) allow authors to use
842847
fallback (either in the <a href="#CSS1"
843848
rel=biblioentry>[CSS1]<!--{{CSS1}}--></a> sense of declarations that are

css3-conditional/Overview.src.html

Lines changed: 13 additions & 8 deletions
< 93CD /div>
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ <h2 class="no-num no-toc" id="status">Status of this document</h2>
9090
implementations are not found, it may be removed to advance the other
9191
features in this specification to Proposed Recommendation.</li>
9292

93+
<li>The support for functions inside of ''@supports'' is at risk.</li>
94+
9395
<li>The '@document' rule is at risk; if interoperable
9496
implementations are not found, it may be removed to advance the other
9597
features in this specification to Proposed Recommendation.</li>
@@ -399,7 +401,7 @@ <h2 id="at-supports">Feature queries: the '@supports' rule</h2>
399401
;
400402

401403
<dfn>supports_declaration_condition</dfn>
402-
: '(' S* core_declaration ')' S*
404+
: '(' S* core_declaration ')' S* | FUNCTION S* [any|unused]* ')'
403405
;</pre>
404406
<p>in which <code>core_declaration</code> is the production
405407
<code>declaration</code> in the core syntax of CSS defined in <a
@@ -418,12 +420,6 @@ <h2 id="at-supports">Feature queries: the '@supports' rule</h2>
418420
that do not meet the forward-compatible syntax for declarations cause
419421
the entire ''@supports'' rule to be ignored.</p>
420422

421-
<p class="issue">Is any further allowance for forward-compatible parsing
422-
needed, for example, to allow additional features (such as, say,
423-
selector tests) to be added to the ''@supports'' rule? Or are these
424-
forward-compatible parsing rules the best solution for such future
425-
expansion anyway?</p>
426-
427423
<p>Each of these grammar terms is associated with a boolean result, as
428424
follows:</p>
429425
<dl>
@@ -461,7 +457,7 @@ <h2 id="at-supports">Feature queries: the '@supports' rule</h2>
461457
<dt>supports_declaration_condition</dt>
462458
<dd>
463459
The result is whether the CSS processor <a
464-
href="#support-definition">supports</a> the declaration.
460+
href="#support-definition">supports</a> the declaration or function.
465461
</dd>
466462
</dl>
467463

@@ -598,6 +594,15 @@ <h3 id="support-definition">Definition of support</h3>
598594
then it <strong>must not</strong>
599595
accept the declaration or claim support for it.</p>
600596

597+
<p>A CSS processor is considered to <i>support</i> a function
598+
(consisting of a function name and arguments)
599+
if it accepts that function
600+
(rather than discarding it as a parse error).
601+
If a processor does not implement, with a usable level of support,
602+
the value given,
603+
then it <strong>must not</strong>
604+
accept the function or claim support for it.</p>
605+
601606
<p>These rules (and the equivalence between them) allow
602607
authors to use fallback (either in the [[CSS1]] sense of declarations
603608
that are overridden by later declarations or with the new capabilities

0 commit comments

Comments
 (0)