Skip to content

Commit b1a24b0

Browse files
emiliodbaron
authored andcommitted
[css-conditional-4] Move definition of @supports selector to css-conditional-4.
1 parent 43ac5c0 commit b1a24b0

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

css-conditional-3/Overview.bs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,8 @@ with <<supports-condition>> defined as:
245245
| <<supports-in-parens>> [ and <<supports-in-parens>> ]*
246246
| <<supports-in-parens>> [ or <<supports-in-parens>> ]*
247247
<dfn>&lt;supports-in-parens></dfn> = ( <<supports-condition>> ) | <<supports-feature>> | <<general-enclosed>>
248-
<dfn>&lt;supports-feature></dfn> = <<supports-selector-fn>> | <<supports-decl>>
248+
<dfn>&lt;supports-feature></dfn> = <<supports-decl>>
249249
<dfn>&lt;supports-decl></dfn> = ( <<declaration>> )
250-
<dfn>&lt;supports-selector-fn></dfn> = selector( <<complex-selector>> )
251250
</pre>
252251

253252
The above grammar is purposely very loose for forwards-compatibility reasons,
@@ -287,12 +286,6 @@ as follows:
287286
::
288287
The result is true if the UA [=supports=] the declaration within the parentheses.
289288

290-
: <<supports-selector-fn>>
291-
::
292-
The result is true if the UA
293-
<a href="#dfn-support-selector">supports the selector</a>
294-
provided as an argument to the function.
295-
296289
: <<general-enclosed>>
297290
::
298291
The result is unknown.
@@ -479,12 +472,6 @@ compound values; implementations must implement all parts of the value
479472
in order to consider the declaration supported, either inside a style rule
480473
or in the declaration condition of an ''@supports'' rule.
481474

482-
A CSS processor is considered to
483-
<dfn export for=CSS id="dfn-support-selector">support a CSS selector</dfn>
484-
if it accepts that selector (rather than discarding it as a
485-
parse error), and that selector doesn't contain
486-
<a>unknown -webkit- pseudo-elements</a>.
487-
488475
<h2 id="apis">APIs</h2>
489476

490477
<h3 id='extentions-to-cssrule-interface'>

css-conditional-4/Overview.bs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,28 @@ and have not yet been copied here.
2727

2828
Issue: In the future, copy the contents of [[css3-conditional]] into this document.
2929

30+
<h2 id="at-supports-ext">Extensions to the ''@supports'' rule</h2>
31+
32+
This level of the specification extends the <<supports-feature>> syntax as follows:
33+
34+
<pre class="prod def" nohighlight>
35+
<dfn>&lt;supports-feature></dfn> = <<supports-selector-fn>> | <<supports-decl>>
36+
<dfn>&lt;supports-selector-fn></dfn> = selector( <<complex-selector>> )
37+
</pre>
38+
39+
: <<supports-selector-fn>>
40+
::
41+
The result is true if the UA
42+
<a href="#dfn-support-selector">supports the selector</a>
43+
provided as an argument to the function.
44+
45+
<h3 id="support-definition-ext">Extensions to the definition of support</h3>
46+
47+
A CSS processor is considered to
48+
<dfn export for=CSS id="dfn-support-selector">support a CSS selector</dfn>
49+
if it accepts that selector (rather than discarding it as a
50+
parse error), and that selector doesn't contain
51+
<a>unknown -webkit- pseudo-elements</a>.
3052

3153
<h2 class=no-num id="acknowledgments">Acknowledgments</h2>
3254

0 commit comments

Comments
 (0)