E84D [css-font-loading] Whoops, actually remove the definition of ready(). · w3c/csswg-drafts@c2fb2a3 · GitHub
Skip to content

Commit c2fb2a3

Browse files
committed
[css-font-loading] Whoops, actually remove the definition of ready().
1 parent 655726e commit c2fb2a3

2 files changed

Lines changed: 7 additions & 59 deletions

File tree

css-font-loading/Overview.bs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -238,31 +238,6 @@ The <code>load()</code> method</h3>
238238
When this happens,
239239
they must act as if they had called the corresponding <a interface>FontFace</a>’s <a method for=FontFace>load()</a> method described here.
240240

241-
<h3 id='font-face-ready'>
242-
The <code>ready()</code> method</h3>
243-
244-
The <a method for=FontFace>ready()</a> method of <a interface>FontFace</a>
245-
returns a <a idl>Promise</a>
246-
which is fulfilled when the font face is successfully loaded,
247-
or rejected when the font face fails to load or parse successfully.
248-
249-
When the <dfn method for="FontFace">ready()</dfn> method is called,
250-
execute these steps:
251-
252-
<ol link-type=idl>
253-
<li>
254-
Let <var>font face</var> be the <a>FontFace</a> object on which this method was called.
255-
256-
<li>
257-
Let <var>ready promise</var> be a newly-created <a idl>Promise</a> object.
258-
259-
<li>
260-
Resolve <var>ready promise</var> with <var>font face's</var> <a attribute>[FontStatusPromise]</a>.
261-
262-
<li>
263-
Return <var>ready promise</var>.
264-
</ol>
265-
266241
<h3 id='font-face-css-connection'>
267242
Interaction with CSS’s ''@font-face'' Rule</h3>
268243

@@ -677,7 +652,7 @@ The <code>ready()</code> method</h3>
677652

678653
Note: Note that the Promise returned by this <a method for=FontFaceSet>ready()</a> method is only ever fulfilled,
679654
never rejected,
680-
unlike the Promise returned by the <a interface>FontFace</a> <a method for=FontFace>ready()</a> method.
655+
unlike the Promise returned by the <a interface>FontFace</a> <a method for=FontFace>load()</a> method.
681656

682657
<h3 id='font-face-set-css'>
683658
Interaction with CSS Font Loading and Matching</h3>

css-font-loading/Overview.html

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
7676
<ul class=toc>
7777
<li><a href=#font-face-constructor><span class=secno>2.1</span> The Constructor</a>
7878
<li><a href=#font-face-load><span class=secno>2.2</span> The <code>load()</code> method</a>
79-
<li><a href=#font-face-ready><span class=secno>2.3</span> The <code>ready()</code> method</a>
80-
<li><a href=#font-face-css-connection><span class=secno>2.4</span> Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul>
79+
<li><a href=#font-face-css-connection><span class=secno>2.3</span> Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul>
8180
<li><a href=#FontFaceSet-interface><span class=secno>3</span> The <code>FontFaceSet</code> Interface</a>
8281
<ul class=toc>
8382
<li><a href=#set-modifications><span class=secno>3.1</span> Modifications of normal Set methods</a>
@@ -334,32 +333,7 @@ <h3 class="heading settled heading" data-level=2.2 id=font-face-load><span class
334333
When this happens,
335334
they must act as if they had called the corresponding <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a>’s <a class=idl-code data-link-for=FontFace data-link-type=method href=#dom-fontface-load title=load()>load()</a> method described here.
336335

337-
<h3 class="heading settled heading" data-level=2.3 id=font-face-ready><span class=secno>2.3 </span><span class=content>
338-
The <code>ready()</code> method</span><a class=self-link href=#font-face-ready></a></h3>
339-
340-
<p> The <a class=idl-code data-link-for=FontFace data-link-type=method href=#dom-fontface-ready title=ready()>ready()</a> method of <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a>
341-
returns a <a data-link-type=idl href=#dom-promise title=promise>Promise</a>
342-
which is fulfilled when the font face is successfully loaded,
343-
or rejected when the font face fails to load or parse successfully.
344-
345-
<p> When the <dfn class=idl-code data-dfn-for=FontFace data-dfn-type=method data-export="" id=dom-fontface-ready>ready()<a class=self-link href=#dom-fontface-ready></a></dfn> method is called,
346-
execute these steps:
347-
348-
<ol data-link-type=idl>
349-
<li>
350-
Let <var>font face</var> be the <a data-link-type=idl href=#dom-fontface title=fontface>FontFace</a> object on which this method was called.
351-
352-
<li>
353-
Let <var>ready promise</var> be a newly-created <a data-link-type=idl href=#dom-promise title=promise>Promise</a> object.
354-
355-
<li>
356-
Resolve <var>ready promise</var> with <var>font face’s</var> <a class=idl-code data-link-type=attribute href=#dom-fontface-fontstatuspromise title=[fontstatuspromise]>[FontStatusPromise]</a>.
357-
358-
<li>
359-
Return <var>ready promise</var>.
360-
</ol>
361-
362-
<h3 class="heading settled heading" data-level=2.4 id=font-face-css-connection><span class=secno>2.4 </span><span class=content>
336+
<h3 class="heading settled heading" data-level=2.3 id=font-face-css-connection><span class=secno>2.3 </span><span class=content>
363337
Interaction with CSS’s <a class=css data-link-type=maybe href=http://www.w3.org/TR/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> Rule</span><a class=self-link href=#font-face-css-connection></a></h3>
364338

365339
<p> A CSS <a class=css data-link-type=maybe href=http://www.w3.org/TR/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> rule automatically defines a corresponding <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a> object,
@@ -771,7 +745,7 @@ <h3 class="heading settled heading" data-level=3.5 id=font-face-set-ready><span
771745

772746
<p class=note> Note: Note that the Promise returned by this <a class=idl-code data-link-for=FontFaceSet data-link-type=method href=#dom-fontfaceset-ready title=ready()>ready()</a> method is only ever fulfilled,
773747
never rejected,
774-
unlike the Promise returned by the <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a> <a class=idl-code data-link-for=FontFace data-link-type=method href=#dom-fontface-ready title=ready()>ready()</a> method.
748+
unlike the Promise returned by the <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a> <a class=idl-code data-link-for=FontFace data-link-type=method href=#dom-fontface-load title=load()>load()</a> method.
775749

776750
<h3 class="heading settled heading" data-level=3.6 id=font-face-set-css><span class=secno>3.6 </span><span class=content>
777751
Interaction with CSS Font Loading and Matching</span><a class=self-link href=#font-face-set-css></a></h3>
@@ -1065,7 +1039,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
10651039
<li>available font faces, <a href=#available-font-faces title="section 4">4</a>
10661040
<li>BinaryData, <a href=#typedefdef-binarydata title="section 2">2</a>
10671041
<li>check(), <a href=#dom-fontfaceset-check title="section 3.4">3.4</a>
1068-
<li>CSS-connected, <a href=#css-connected title="section 2.4">2.4</a>
1042+
<li>CSS-connected, <a href=#css-connected title="section 2.3">2.3</a>
10691043
<li>CSSFontFaceLoadEvent, <a href=#dom-cssfontfaceloadevent title="section 3">3</a>
10701044 3582
<li>CSSFontFaceLoadEventInit, <a href=#dictdef-cssfontfaceloadeventinit title="section 3">3</a>
10711045
<li>[Data], <a href=#dom-fontface-data title="section 2">2</a>
@@ -1107,9 +1081,8 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11071081
<li>[PendingReadyPromises], <a href=#dom-fontfaceset-pendingreadypromises title="section 3">3</a>
11081082
<li>possibly pending font loads, <a href=#possibly-pending-font-loads title="section 3">3</a>
11091083
<li>Promise, <a href=#dom-promise title="section 1.1">1.1</a>
1110-
<li>ready()<ul><li>method for FontFace, <a href=#dom-fontface-ready title="section 2.3">2.3</a>
1111-
<li>method for FontFaceSet, <a href=#dom-fontfaceset-ready title="section 3.5">3.5</a>
1112-
</ul><li>source, <a href=#dom-fontfacefontface-source title="section 2.1">2.1</a>
1084+
<li>ready(), <a href=#dom-fontfaceset-ready title="section 3.5">3.5</a>
1085+
<li>source, <a href=#dom-fontfacefontface-source title="section 2.1">2.1</a>
11131086
<li>status<ul><li>attribute for FontFace, <a href=#dom-fontface-status title="section 2">2</a>
11141087
<li>attribute for FontFaceSet, <a href=#dom-fontfaceset-status title="section 3">3</a>
11151088
</ul><li>stretch<ul><li>dict-member for FontFaceDescriptors, <a href=#dom-fontfacedescriptors-stretch title="section 2">2</a>

0 commit comments

Comments
 (0)