Skip to content

Commit 308d84c

Browse files
committed
[css-fonts-4] add another multi-format example
1 parent fa1cd32 commit 308d84c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

css-fonts-4/Overview.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,6 +2144,15 @@ for user agents which don't support a particular font technology.
21442144
</pre>
21452145
</div>
21462146

2147+
<div class="example">
2148+
In this example, if woff2 is not supported,
2149+
an unsupported and fictitious "zebra" format is skipped
2150+
and the opentype font is downloaded:
2151+
<pre>src: url(ideal.woff2) format("woff2"),
2152+
url(unsupported.zeb) format("zebra"),
2153+
url(basic.ttf) format("opentype");</pre>
2154+
</div>
2155+
21472156
<div class="example">Here an individual instance in a collection is loaded,
21482157
or if collections are not supported, download an individual font instead.
21492158
<pre>

0 commit comments

Comments
 (0)