Skip to content

Commit 75ff327

Browse files
committed
Fix w3c#2205 by referencing RFC8081 for collection fragment syntax
1 parent d4e0597 commit 75ff327

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,15 +1376,15 @@ images/containing SVG font definitions. If the element reference is omitted,
13761376
a reference to the first defined font is implied. Similarly, font
13771377
container formats that can contain more than one font must load one
13781378
and only one of the fonts for a given ''@font-face'' rule. Fragment
1379-
identifiers are used to indicate which font to load. If a container
1380-
format lacks a defined fragment identifier scheme, implementations
1381-
should use a simple 1-based indexing scheme (e.g. "font-collection#1"
1382-
for the first font, "font-collection#2" for the second font).
1379+
identifiers are used to indicate which font to load; these use the PostScript
1380+
name of the font as defined in [[!RFC8081]]. </p>
13831381

13841382
<pre>
1385-
src: url(fonts/simple.woff); /* load simple.woff relative to stylesheet location */
1386-
src: url(/fonts/simple.woff); /* load simple.woff from absolute location */
1387-
src: url(images/fonts.svg#simple); /* images/load SVG font with id 'simple' */
1383+
src: url(fonts/simple.woff); /* load simple.woff relative to stylesheet location */
1384+
src: url(/fonts/simple.woff); /* load simple.woff from absolute location */
1385+
src: url(fonts/coll.otc#foo); /* load font foo from collection coll.otc
1386+
src: url(fonts/coll.woff2#foo); /* load font foo from woff2 collection coll.woff2
1387+
src: url(fonts.svg#simple); /* load SVG font with id 'simple' */
13881388
</pre>
13891389

13901390
External references consist of a URL, followed by an optional hint

0 commit comments

Comments
 (0)