Skip to content

Commit

Permalink
[css-conditional-4] Extend supports feature to express font capabilities
Browse files Browse the repository at this point in the history
Defining the criteria for enabling @supports to distinguish support for
a set of font technologies defined in the grammar.

Addresses resolution in w3c#6520 to add criteria for font technologies as a
first step.
  • Loading branch information
drott committed Aug 25, 2021
1 parent 48ba2b3 commit 62cfd95
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions css-conditional-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ 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>> )

This comment has been minimized.

Copy link
@litherum

litherum Sep 15, 2021

Please add a note saying this is not ready for implementation yet (though similar/identical grammar is ready for implementation inside the src: descriptor). It also might be worth saying that implementing this depends on implementing @else.

This comment has been minimized.

Copy link
@drott

drott Sep 15, 2021

Author Owner

I copied that feedback to w3c#6613 with a response there.

<dfn>&lt;font-technology></dfn> = [ features( <<font-feature-technology>> ) | variations
| color( <<color-font-technology>> ) | palettes | incremental ]
<dfn>&lt;font-feature-technology></dfn> = [ opentype | aat | graphite]
<dfn>&lt;color-font-technology></dfn> = [ COLRv0 | COLRv1 | SVG | sbix | CBDT ]
</pre>

: <<supports-selector-fn>>
Expand All @@ -44,6 +49,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>>

This comment has been minimized.

Copy link
@litherum

litherum Sep 15, 2021

Ditto.

::
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 +64,11 @@ 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 specific font-technology
indicated by function and keyword
in layout and rendering.

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

0 comments on commit 62cfd95

Please sign in to comment.