Skip to content

Commit c9aaadd

Browse files
committed
[css-conditional-4] Extend supports feature to express font capabilities
Define criteria for enabling @supports to distinguish support for a set of font technologies defined in the grammar. Addresses resolution in #6520 to add criteria for font technologies as a first step. Incorporates @LeaVerou 's feedback from [1] [1] #6520 (comment)
1 parent 01162d6 commit c9aaadd

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

css-conditional-4/Overview.bs

+18-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ Issue: In the future, copy the contents of [[css3-conditional]] into this docume
3434
This level of the specification extends the <<supports-feature>> syntax as follows:
3535

3636
<pre class="prod def" nohighlight>
37-
<dfn>&lt;supports-feature></dfn> = <<supports-selector-fn>> | <<supports-decl>>
37+
<dfn>&lt;supports-feature></dfn> = <<supports-selector-fn>> | <<supports-font-technology-fn>> | <<supports-decl>>
3838
<dfn>&lt;supports-selector-fn></dfn> = selector( <<complex-selector>> )
39+
<dfn>&lt;supports-font-technology-fn></dfn> = font-technology ( <<font-technology>> )
40+
<dfn>&lt;font-technology></dfn> = [ features-opentype | features-aat | features-graphite
41+
| color-colrv0 | color-colrv1 | color-svg | color-sbix | color-cbdt
42+
| variations | palettes | incremental ]
3943
</pre>
4044

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

51+
: <<supports-font-technology-fn>>
52+
::
53+
The result is true if the UA
54+
<a href="dfn-support-font-technology">supports the font technology</a>
55+
provided as an argument to the function.
56+
57+
4758
<h3 id="support-definition-ext">Extensions to the definition of support</h3>
4859

4960
A CSS processor is considered to
@@ -52,5 +63,10 @@ if it accepts that selector (rather than discarding it as a
5263
parse error), and that selector doesn't contain
5364
<a>unknown -webkit- pseudo-elements</a>.
5465

55-
<h2 class=no-num id="acknowledgments">Acknowledgments</h2>
66+
A CSS processor is considered to
67+
<dfn export for=CSS id="dfn-support-font-technology">support a font technology</dfn>
68+
when the text and layout processing engine ingesting
69+
this CSS text is capable of utilising the specified font-technology
70+
in layout and rendering.
5671

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

0 commit comments

Comments
 (0)