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
This attribute reflects the <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a>’s <adata-link-type=idlhref=#dom-fontfaceset-readypromisetitle=[[readypromise]]>[[ReadyPromise]]</a> slot.
The ready attribute</a> for more details on this <adata-link-type=idlhref=#dom-promisetitle=promise>Promise</a> and its use.</p>
533
532
534
533
<dt><dfnclass=idl-codedata-dfn-for=FontFaceSetdata-dfn-type=attributedata-export="" id=dom-fontfaceset-size>size<aclass=self-linkhref=#dom-fontfaceset-size></a></dfn><spandata-attribute-info="" for=FontFaceSet/size> of type <adata-link-type=idl-nametitle="unsigned long">unsigned long</a>, readonly</span>
<dt><dfnclass=idl-codedata-dfn-for=FontFaceSetdata-dfn-type=methoddata-export="" id=dom-fontfaceset-foreachtitle=forEach()>forEach<aclass=self-linkhref=#dom-fontfaceset-foreach></a></dfn>(<adata-link-type=idlhref=#callbackdef-foreachcallbacktitle=foreachcallback>ForEachCallback</a> cb, optional any thisArg)
562
560
<dd>
563
-
All of these methods call the corresponding method of the <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a>’s <adata-link-type=idlhref=#dom-fontfaceset-containedfontstitle=[[containedfonts]]>[[ContainedFonts]]</a> slot
561
+
If <aclass=idl-codedata-link-type=methodhref=#dom-fontfaceset-addtitle=add()>add()</a> or <aclass=idl-codedata-link-type=methodhref=#dom-fontfaceset-deletetitle=delete()>delete()</a> are called
562
+
with an argument that is a <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> object,
563
+
they must throw an InvalidModificationError exception.
564
+
565
+
<p>All of these methods call the corresponding method of the <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a>’s <adata-link-type=idlhref=#dom-fontfaceset-containedfontstitle=[[containedfonts]]>[[ContainedFonts]]</a> slot
564
566
with the same arguments as were passed to them,
565
-
and return the value returned by the called method.
567
+
and return the value returned by the called method.</p>
This must remove all non-<adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><adata-link-type=idlhref=#dom-fontfacetitle=fontface>FontFace</a> objects
572
+
from the <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a>’s <adata-link-type=idlhref=#dom-fontfaceset-containedfontstitle=[[containedfonts]]>[[ContainedFonts]]</a> slot.
The <adata-link-for=FontFaceSetdata-link-type=idlhref=#dom-fontfaceset-statustitle=status>status</a> promise needs to pay attention to what <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> it’s attached to.
612
619
I guess only the <adata-link-type=dfnhref=#font-sourcetitle="font source’s">font source’s</a><adata-link-for=FontFaceSetdata-link-type=idlhref=#dom-fontfaceset-statustitle=status>status</a> promise should care about pending layout operations.</p>
Modifications of normal Set methods</span><aclass=self-linkhref=#set-modifications></a></h3>
616
-
617
-
<p>The <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> methods <code>add()</code> and <code>delete()</code>
618
-
must throw an InvalidModificationError exception
619
-
if their argument is a <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> object.</p>
must only remove the manually-added <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> objects;
623
-
the <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> objects are unaffected.</p>
The <code>load()</code> method</span><aclass=self-linkhref=#font-face-set-load></a></h3>
790
786
791
787
<p>The <adata-link-for=FontFaceSetdata-link-type=functionishhref=#dom-fontfaceset-loadtitle=load()>load()</a> method of <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> will determine whether all fonts in the given font list
The <code>check()</code> method</span><aclass=self-linkhref=#font-face-set-check></a></h3>
837
833
838
834
<p>The <adata-link-type=functionishhref=#dom-fontfaceset-checktitle=check()>check()</a> method of <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> will determine whether all fonts in the given font list
unlike the Promise returned by the <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a><aclass=idl-codedata-link-for=FontFacedata-link-type=methodhref=#dom-fontface-loadtitle=load()>load()</a> method.</p>
Interaction with CSS Font Loading and Matching</span><aclass=self-linkhref=#font-face-set-css></a></h3>
904
900
905
901
<p>When the font matching algorithm in <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css3-fontstitle=biblio-css3-fonts>[CSS3-FONTS]</a> is run automatically by the user-agent,
0 commit comments