Skip to content

[css-conditional-4] Extend supports feature to express font capabilities #6613

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 1 commit into from
Sep 16, 2021
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
20 changes: 18 additions & 2 deletions css-conditional-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ Issue: In the future, copy the contents of [[css3-conditional]] into this docume
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-feature></dfn> = <<supports-selector-fn>> | <<supports-font-technology-fn>> | <<supports-decl>>
<dfn>&lt;supports-selector-fn></dfn> = selector( <<complex-selector>> )
<dfn>&lt;supports-font-technology-fn></dfn> = font-technology ( <<font-technology>> )
<dfn>&lt;font-technology></dfn> = [ features-opentype | features-aat | features-graphite
| color-colrv0 | color-colrv1 | color-svg | color-sbix | color-cbdt
| variations | palettes | incremental ]
</pre>

: <<supports-selector-fn>>
Expand All @@ -44,6 +48,13 @@ This level of the specification extends the <<supports-feature>> syntax as follo
<a href="#dfn-support-selector">supports the selector</a>
provided as an argument to the function.

: <<supports-font-technology-fn>>
::
The result is true if the UA
<a href="dfn-support-font-technology">supports the font technology</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
Expand All @@ -52,5 +63,10 @@ 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>
A CSS processor is considered to
<dfn export for=CSS id="dfn-support-font-technology">support a font technology</dfn>
when the text and layout processing engine ingesting
this CSS text is capable of utilising the specified font-technology
in layout and rendering.

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