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,
292
292
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.
293
293
If any of them fail to parse correctly,
294
-
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a SyntaxError exception and abort these steps.
294
+
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.
295
295
Otherwise, set <var>font face’s</var> corresponding attributes to the serialization of the parsed values.
296
296
297
297
<li>
298
298
If the <adata-link-type=idlhref=#dom-fontfacefontface-sourcetitle=source>source</a> argument was a <adata-link-type=idltitle=domstring>DOMString</a>,
299
299
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.
300
300
If it fails to parse correctly,
301
-
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a SyntaxError exception and abort these steps;
301
+
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;
302
302
otherwise, set <var>font face’s</var> internal <adata-link-type=idlhref=#dom-fontface-urlstitle=[[urls]]>[[Urls]]</a> slot to the string.
303
303
304
304
<pclass=note>Note: Note that this means that passing a naked url as the source argument,
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a SyntaxError
334
+
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a DOMException named "SyntaxError"
335
335
and set <var>font face’s</var><adata-link-for=FontFacedata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> attribute to "error".
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with a NetworkError
390
+
reject <var>font face’s</var><adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> with
391
+
a DOMException whose name is "NetworkError"
391
392
and set <var>font face’s</var><adata-link-for=FontFacedata-link-type=idlhref=#dom-fontface-statustitle=status>status</a> attribute to "error".
0 commit comments