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
// Emulate the Set interface, until we can extend Set correctly.
484
485
readonly attribute unsigned long <aclass=idl-codedata-global-name="FontFaceSet<interface>/size<attribute>" data-link-for=FontFaceSetdata-link-type=attributedata-readonly="" data-type="unsigned long " href=#dom-fontfaceset-sizetitle=size>size</a>;
The <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> constructor, when called,
540
+
must construct a new <aclass=idl-codedata-link-type=interfacetitle=set>Set</a> object
541
+
by passing its <aclass=idl-codedata-link-type=argumenthref=#dom-fontfacesetfontfaceset-initialfacestitle=initialfaces>initialFaces</a> argument
542
+
to the <aclass=idl-codedata-link-type=interfacetitle=set>Set</a> constructor,
543
+
then assigning that <aclass=idl-codedata-link-type=interfacetitle=set>Set</a> object to the <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a>’s <adata-link-type=idlhref=#dom-fontfaceset-containedfontstitle=[[containedfonts]]>[[ContainedFonts]]</a> slot.
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,
560
569
which is initialized to a fresh pending <adata-link-type=idlhref=#dom-promisetitle=promise>Promise</a>,
561
570
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,
562
-
which is initialized to an empty<aclass=idl-codedata-link-type=interfacetitle=set>Set</a> object
571
+
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
563
572
(though see <adata-section="" href=#document-font-face-set>§4.2
564
-
Interaction with CSS’s @font-face Rule</a> for information on how the Set may be pre-filled).</p>
573
+
Interaction with CSS’s @font-face Rule</a> for information on how the Set may be pre-filled
574
+
for <adata-link-type=idlhref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> objects created by the user agent).</p>
565
575
566
576
<p>Because font families are loaded only when they are used,
567
577
content sometimes needs to understand when the loading of fonts occurs.
0 commit comments