Skip to content

Commit 548dab8

Browse files
committed
[css-fonts-4] change supports to technology
1 parent c7d8bf6 commit 548dab8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

css-fonts-4/Overview.bs

+9-8
Original file line numberDiff line numberDiff line change
@@ -2040,25 +2040,25 @@ according to section [[css-syntax#parse-comma-separated-list-of-component-values
20402040
Then each component value is parsed according to this grammar:
20412041

20422042

2043-
<pre><<url>> [ format(<<font-format>> [supports <<font-technology>>#]?)]? | local(<<font-face-name>>)</pre>
2043+
<pre><<url>> [ format(<<font-format>>)]? [ technology( <<font-technology>>#)]? | local(<<font-face-name>>)</pre>
20442044

20452045
<pre class="prod"><dfn id="font-format-values">&lt;font-format&gt;</dfn>
20462046
= [<<string>> | woff | truetype | opentype
20472047
| woff2 | embedded-opentype | collection | svg]</pre>
20482048

20492049
<pre class="prod"><dfn id="font-technology-values">&lt;font-technology&gt;</dfn>
2050-
= [features(<<font-feature-technology>>) | variations
2051-
| color(<<color-font-technology>>) | palettes
2050+
= <<font-feature-technology>> | variations
2051+
| <<color-font-technology>> | palettes
20522052
| incremental ]</pre>
20532053

20542054
<pre class="prod"><dfn id="font-feature-technology-values">&lt;font-feature-technology&gt;</dfn>
2055-
= [opentype | aat | graphite]</pre>
2055+
= [feature-opentype | feature-aat | feature-graphite]</pre>
20562056

20572057
<pre class="prod"><dfn id="color-font-technology-values">&lt;color-font-technology&gt;</dfn>
2058-
= [COLRv0 | COLRv1 | SVG | sbix | CBDT ]</pre>
2058+
= [color-COLRv0 | color-COLRv1 | color-SVG | color-sbix | color-CBDT ]</pre>
20592059

20602060
If a component value is parsed correctly
2061-
and is of a format and font technology that the UA supports,
2061+
and is of a font format or font technology that the UA supports,
20622062
add it to the list of supported sources.
20632063
If parsing a component value results in a parsing error
20642064
or its format or technology are unsupported,
@@ -2068,7 +2068,8 @@ If there are no supported entries at the end of this process,
20682068
the value for the 'src!!descriptor' descriptor is a parse error.
20692069

20702070
These parsing rules allow for graceful fallback of fonts
2071-
for user agents which don't support a particular font technology.
2071+
for user agents which don't support a particular font technology
2072+
or font format.
20722073

20732074
<div class="example" id="ex-incremental">
20742075
For example,
@@ -2087,7 +2088,7 @@ for user agents which don't support a particular font technology.
20872088
@font-face {
20882089
font-family: "MyIncrementallyLoadedWebFont";
20892090
src: url("FallbackURLForBrowsersWhichDontSupportIncrementalLoading.woff2") format("woff2");
2090-
src: url("MyIncrementallyLoadedWebFont.otf") format(opentype supports incremental);
2091+
src: url("MyIncrementallyLoadedWebFont.otf") format(opentype) technology(incremental);
20912092
}
20922093
</pre>
20932094
</div>

0 commit comments

Comments
 (0)