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
and the members of the <aclass=idl-codedata-link-for=FontFace/FontFace()data-link-type=argumenthref=#dom-fontfacefontface-descriptorstitle=descriptors>descriptors</a> argument,
326
326
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.
327
327
If any of them fail to parse correctly,
328
-
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a DOMException named "SyntaxError" and abort these steps.
328
+
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a DOMException named "SyntaxError",
329
+
queue a task to set <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> attribute to "error",
330
+
and abort these steps.
329
331
Otherwise, queue a task to set <var>font face’s</var> corresponding attributes to the serialization of the parsed values.
330
332
331
333
<li>
332
334
If the <adata-link-type=idlhref=#dom-fontfacefontface-sourcetitle=source>source</a> argument was a <adata-link-type=idltitle=domstring>DOMString</a>,
333
335
parse it according to the grammar of the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-fonts-3/#descdef-srctitle=src>src</a> descriptor 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.
334
336
If it fails to parse correctly,
335
-
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a DOMException named "SyntaxError" exception and abort these steps;
337
+
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a DOMException named "SyntaxError" exception
338
+
queue a task to set <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> attribute to "error",
339
+
and abort these steps;
336
340
otherwise, set <var>font face’s</var> internal <adata-link-type=idlhref=#dom-fontface-urlstitle=[[urls]]>[[Urls]]</a> slot to the string.
337
341
338
342
<pclass=note>Note: Note that this means that passing a naked url as the source argument,
0 commit comments