Skip to content

Commit 62cfd95

Browse files
committed
[css-conditional-4] Extend supports feature to express font capabilities
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.
1 parent 48ba2b3 commit 62cfd95

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

css-conditional-4/Overview.bs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ 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( <<font-feature-technology>> ) | variations
41+
| color( <<color-font-technology>> ) | palettes | incremental ]
42+
<dfn>&lt;font-feature-technology></dfn> = [ opentype | aat | graphite]
43+
<dfn>&lt;color-font-technology></dfn> = [ COLRv0 | COLRv1 | SVG | sbix | CBDT ]
3944
</pre>
4045

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

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

4961
A CSS processor is considered to
@@ -52,5 +64,11 @@ if it accepts that selector (rather than discarding it as a
5264
parse error), and that selector doesn't contain
5365
<a>unknown -webkit- pseudo-elements</a>.
5466

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

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

0 commit comments

Comments
 (0)