You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let <var>font face</var> be a fresh <adata-link-type=idlhref=#dom-fontfacetitle=fontface>FontFace</a> object.
318
318
Set <var>font face’s</var><adata-link-for=FontFacedata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> argument to <code>"unloaded"</code>,
319
-
its <adata-link-type=idlhref=#dom-fontface-familytitle=family>family</a> attribute to the empty string,
320
-
and all of its attributes corresponding to the <adata-link-type=idlhref=#dictdef-fontfacedescriptorstitle=fontfacedescriptors>FontFaceDescriptors</a> dictionary’s members
321
-
set to the initial value of the corresponding member.
319
+
Set its internal <adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> slot to a fresh pending <adata-link-type=idlhref=#dom-promisetitle=promise>Promise</a> object.
322
320
323
-
<p>Set its internal <adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> slot to a newly-created <adata-link-type=idlhref=#dom-promisetitle=promise>Promise</a> object.</p>
324
-
325
-
<p>Return <var>font face</var>,
326
-
and complete the rest of these steps asynchronously.</p>
327
-
328
-
<li>
329
-
Parse the <aclass=idl-codedata-link-type=argumenthref=#dom-fontfacefontface-familytitle=family>family</a> argument,
321
+
<p>Parse the <aclass=idl-codedata-link-type=argumenthref=#dom-fontfacefontface-familytitle=family>family</a> argument,
330
322
and the members of the <aclass=idl-codedata-link-for=FontFace/FontFace()data-link-type=argumenthref=#dom-fontfacefontface-descriptorstitle=descriptors>descriptors</a> argument,
331
323
according to the grammars of the corresponding descriptors of the CSS <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-fonts-3/#at-font-face-ruletitle=@font-face>@font-face</a> rule.
332
324
If any of them fail to parse correctly,
333
325
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a DOMException named "SyntaxError",
334
-
queue a task to set <var>font face’s</var><adata-link-for=FontFacedata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> attribute to "error",
335
-
and abort these steps.
336
-
Otherwise, queue a task to set <var>font face’s</var> corresponding attributes to the serialization of the parsed values.
326
+
and set <var>font face’s</var><adata-link-for=FontFacedata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> attribute to "error".
327
+
Otherwise, set <var>font face’s</var> corresponding attributes to the serialization of the parsed values.</p>
328
+
329
+
<p>Return <var>font face</var>.
330
+
If <var>font face’s <adata-link-for=FontFacedata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> is "error",
331
+
terminate this algorithm;
332
+
otherwise,
333
+
complete the rest of these steps asynchronously.</var></p>
337
334
338
335
<li>
339
336
If the <adata-link-type=idlhref=#dom-fontfacefontface-sourcetitle=source>source</a> argument was a <adata-link-type=idltitle=domstring>DOMString</a>,
0 commit comments