Skip to content

[css-conditional] Define @supports selector function. #3774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions css-conditional-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@ and have not yet been copied here.

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

<h2 id="at-supports-ext">Extensions to the ''@supports'' rule</h2>

This level of the specification extends the <<supports-feature>> syntax as follows:

<pre class="prod def" nohighlight>
<dfn>&lt;supports-feature></dfn> = <<supports-selector-fn>> | <<supports-decl>>
<dfn>&lt;supports-selector-fn></dfn> = selector( <<complex-selector>> )
</pre>

: <<supports-selector-fn>>
::
The result is true if the UA
<a href="#dfn-support-selector">supports the selector</a>
provided as an argument to the function.

<h3 id="support-definition-ext">Extensions to the definition of support</h3>

A CSS processor is considered to
<dfn export for=CSS id="dfn-support-selector">support a CSS selector</dfn>
if it accepts that selector (rather than discarding it as a
parse error), and that selector doesn't contain
<a>unknown -webkit- pseudo-elements</a>.

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