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 <dfnclass=idl-codedata-dfn-for=FontFaceSetdata-dfn-type=attributedata-export="" id=dom-fontfaceset-failedfonts>[[FailedFonts]]<aclass=self-linkhref=#dom-fontfaceset-failedfonts></a></dfn> slots,
587
587
all of which are initialized to the empty list,
588
588
a <dfnclass=idl-codedata-dfn-for=FontFaceSetdata-dfn-type=attributedata-export="" id=dom-fontfaceset-readypromise>[[ReadyPromise]]<aclass=self-linkhref=#dom-fontfaceset-readypromise></a></dfn> slot,
589
-
which is initialized to a fresh <adata-link-type=idlhref=#dom-promisetitle=promise>Promise</a> fulfilled with the <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a>,
589
+
which is initialized to a fresh pending <adata-link-type=idlhref=#dom-promisetitle=promise>Promise</a>,
590
590
and a <dfnclass=idl-codedata-dfn-for=FontFaceSetdata-dfn-type=attributedata-export="" id=dom-fontfaceset-containedfonts>[[ContainedFonts]]<aclass=self-linkhref=#dom-fontfaceset-containedfonts></a></dfn> slot,
591
591
which is initialized by the <aclass=idl-codedata-link-type=constructorhref=#dom-fontfaceset-fontfacesettitle=fontfaceset()>FontFaceSet constructor</a> to a <aclass=idl-codedata-link-type=interfacetitle=set>Set</a> object
592
592
(though see <adata-section="" href=#document-font-face-set>§4.2
append them to <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-failedfontstitle=[[failedfonts]]>[[FailedFonts]]</a> slot.
716
716
</ol>
717
717
718
-
<p>If there are ever <adata-link-type=dfnhref=#no-pending-font-loadstitle="no pending font loads">no pending font loads</a>
719
-
and either of <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-loadedfontstitle=[[loadedfonts]]>[[LoadedFonts]]</a> or <aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-failedfontstitle=[[failedfonts]]>[[FailedFonts]]</a> slots are not empty,
718
+
<p>Whenever a <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> goes from having <adata-link-type=dfnhref=#possibly-pending-font-loadstitle="possibly pending font loads">possibly pending font loads</a>
719
+
to having <adata-link-type=dfnhref=#no-pending-font-loadstitle="no pending font loads">no pending font loads</a>,
<adata-link-type=dfnhref=#fire-a-font-load-eventtitle="fire a font load event">Fire a font load event</a> named <aclass=idl-codedata-link-type=eventhref=#dom-fontfaceset-loadingdonetitle=loadingdone>loadingdone</a> at <var>font face set</var>
728
-
with the contents of <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-loadedfontstitle=[[loadedfonts]]>[[LoadedFonts]]</a> slots, if any.
728
+
with the (possibly empty) contents of <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-loadedfontstitle=[[loadedfonts]]>[[LoadedFonts]]</a> slot.
729
+
Reset the <aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-loadedfontstitle=[[loadedfonts]]>[[LoadedFonts]]</a> slot to an empty list.
729
730
730
731
<li>
731
732
If <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-failedfontstitle=[[failedfonts]]>[[FailedFonts]]</a> slots is non-empty,
732
733
<adata-link-type=dfnhref=#fire-a-font-load-eventtitle="fire a font load event">fire a font load event</a> named <aclass=idl-codedata-link-type=eventhref=#dom-fontfaceset-loadingerrortitle=loadingerror>loadingerror</a> at <var>font face set</var>
733
734
with the contents of <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-failedfontstitle=[[failedfonts]]>[[FailedFonts]]</a> slot.
735
+
Reset the <aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-failedfontstitle=[[failedfonts]]>[[FailedFonts]]</a> slot to an empty list.
734
736
735
737
<li>
736
738
Fulfill <var>font face set’s</var><aclass=idl-codedata-link-type=attributehref=#dom-fontfaceset-readypromisetitle=[[readypromise]]>[[ReadyPromise]]</a> attribute’s value with <var>font face set</var>.
0 commit comments