Skip to content

Commit ba0a889

Browse files
committed
[css-font-loading] Set all the initial attributes of FontFace to something synchronously.
1 parent f3730f5 commit ba0a889

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

css-font-loading/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,13 @@ The Constructor</h3>
188188
<ol link-type=idl>
189189
<li>
190190
Let <var>font face</var> be a fresh <a>FontFace</a> object.
191-
Set <var>font face's</var> <a for=FontFace>status</a> argument to <code>"unloaded"</code>.
191+
Set <var>font face's</var> <a for=FontFace>status</a> argument to <code>"unloaded"</code>,
192+
its <a idl>family</a> attribute to the empty string,
193+
and all of its attributes corresponding to the <a idl>FontFaceDescriptors</a> dictionary's members
194+
set to the initial value of the corresponding member.
195+
192196
Set its internal <a>[<!---->[FontStatusPromise]]</a> slot to a newly-created <a idl>Promise</a> object.
197+
193198
Return <var>font face</var>,
194199
and complete the rest of these steps asynchronously.
195200

css-font-loading/Overview.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,15 @@ <h3 class="heading settled heading" data-level=2.1 id=font-face-constructor><spa
315315
<ol data-link-type=idl>
316316
<li>
317317
Let <var>font face</var> be a fresh <a data-link-type=idl href=#dom-fontface title=fontface>FontFace</a> object.
318-
Set <var>font face’s</var> <a data-link-for=FontFace data-link-type=idl href=#dom-fontface-status title=status>status</a> argument to <code>"unloaded"</code>.
319-
Set its internal <a data-link-type=idl href=#dom-fontface-fontstatuspromise title=[[fontstatuspromise]]>[[FontStatusPromise]]</a> slot to a newly-created <a data-link-type=idl href=#dom-promise title=promise>Promise</a> object.
320-
Return <var>font face</var>,
321-
and complete the rest of these steps asynchronously.
318+
Set <var>font face’s</var> <a data-link-for=FontFace data-link-type=idl href=#dom-fontface-status title=status>status</a> argument to <code>"unloaded"</code>,
319+
its <a data-link-type=idl href=#dom-fontface-family title=family>family</a> attribute to the empty string,
320+
and all of its attributes corresponding to the <a data-link-type=idl href=#dictdef-fontfacedescriptors title=fontfacedescriptors>FontFaceDescriptors</a> dictionary’s members
321+
set to the initial value of the corresponding member.
322+
323+
<p>Set its internal <a data-link-type=idl href=#dom-fontface-fontstatuspromise title=[[fontstatuspromise]]>[[FontStatusPromise]]</a> slot to a newly-created <a data-link-type=idl href=#dom-promise title=promise>Promise</a> object.</p>
324+
325+
<p>Return <var>font face</var>,
326+
and complete the rest of these steps asynchronously.</p>
322327

323328
<li>
324329
Parse the <a class=idl-code data-link-type=argument href=#dom-fontfacefontface-family title=family>family</a> argument,

0 commit comments

Comments
 (0)