Skip to content

Commit 369e9ce

Browse files
committed
[css-font-loading] Fire loading events/handle loading promise when you add a loading font to a FontFaceSet.
1 parent ae5f90e commit 369e9ce

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

css-font-loading/Overview.bs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,14 +562,17 @@ Events</h3>
562562
</ol>
563563

564564
Whenever one or more {{FontFace}} objects within a given {{FontFaceSet}}
565-
change their {{FontFace/status}} attribute to "loading",
565+
change their {{FontFace/status}} attribute to "<code>loading</code>",
566+
or one or more {{FontFace}} objects whose {{FontFace/status}} attribute is <em>already</em> "<code>loading</code>"
567+
is added to a {{FontFaceSet}},
566568
the user agent must run the following steps:
567569

568570
<ol>
569571
<li>
570572
Let <var>font face set</var> be the given {{FontFaceSet}},
571573
and <var>loading fonts</var> be the {{FontFace}} objects
572-
that have newly switched to "loading" status,
574+
that have newly switched to "loading" status
575+
or that were added to <var>font face set</var> while already in "loading" status,
573576
in the same order as they appear in <var>font face set</var>.
574577

575578
<li>

0 commit comments

Comments
 (0)