8000 [css-font-loading] FontFaceSet#check still had a remnant of the older… · w3c/csswg-drafts@514854f · GitHub
Skip to content

Commit 514854f

Browse files
committed
[css-font-loading] FontFaceSet#check still had a remnant of the older promise algo.
1 parent cb59b4c commit 514854f

2 files changed

Lines changed: 42 additions & 34 deletions

File tree

css-font-loading/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ The <code>check()</code> method</h3>
611611
using the <a argument for="FontFaceSet/check()">font</a> and <a argument for="FontFaceSet/check()">text</a> arguments passed to the function,
612612
and let <var>font face list</var> be the return value.
613613
If a syntax error was returned,
614-
reject <var>promise</var> with a SyntaxError exception
614+
throw a SyntaxError exception
615615
and terminate these steps.
616616

617617
<li>

css-font-loading/Overview.html

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</p>
1414
<h1 class="p-name no-ref" id=title>CSS Font Loading Module Level 3</h1>
1515
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>W3C First Public Working Draft,
16-
<span class=dt-updated><span class=value-title title=20140214>14 February 2014</span></span></span></h2>
17-
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://www.w3.org/TR/2014/WD-css-font-loading-3-20140214/>http://www.w3.org/TR/2014/WD-css-font-loading-3-20140214/</a><dt>Latest version:<dd><a href=http://w3.org/TR/css-font-loading/>http://w3.org/TR/css-font-loading/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-font-loading/>http://dev.w3.org/csswg/css-font-loading/</a>
16+
<span class=dt-updated><span class=value-title title=20140225>25 February 2014</span></span></span></h2>
17+
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://www.w3.org/TR/2014/WD-css-font-loading-3-20140225/>http://www.w3.org/TR/2014/WD-css-font-loading-3-20140225/</a><dt>Latest version:<dd><a href=http://w3.org/TR/css-font-loading/>http://w3.org/TR/css-font-loading/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/css 8000 wg/css-font-loading/>http://dev.w3.org/csswg/css-font-loading/</a>
1818
<dt>Feedback:</dt>
1919
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-font-loading%5D%20feedback">www-style@w3.org</a>
2020
with subject line
@@ -68,36 +68,44 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=status><span class=c
6868
<div data-fill-with=at-risk></div>
6969

7070
<h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class=content>Table of Contents</span></h2>
71-
<div data-fill-with=table-of-contents><ul class=toc><li><a href=#introduction><span class=secno>1</span>
72-
Introduction</a><li><a href=#fontface-interface><span class=secno>2</span>
73-
The <code>FontFace</code> Interface</a><ul class=toc><li><a href=#font-face-constructor><span class=secno>2.1</span>
74-
The Constructor</a><li><a href=#font-face-load><span class=secno>2.2</span>
75-
The <code>load()</code> method</a><li><a href=#font-face-ready><span class=secno>2.3</span>
76-
The <code>ready()</code> method</a><li><a href=#font-face-css-connection><span class=secno>2.4</span>
77-
Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul><li><a href=#FontFaceSet-interface><span class=secno>3</span>
78-
The <code>FontFaceSet</code> Interface</a><ul class=toc><li><a href=#set-modifications><span class=secno>3.1</span>
79-
Modifications of normal Set methods</a><li><a href=#FontFaceSet-events><span class=secno>3.2</span>
80-
Events</a><li><a href=#font-face-set-load><span class=secno>3.3</span>
81-
The <code>load()</code> method</a><li><a href=#font-face-set-check><span class=secno>3.4</span>
82-
The <code>check()</code> method</a><li><a href=#font-fa F91A ce-set-ready><span class=secno>3.5</span>
83-
The <code>ready()</code> method</a><li><a href=#font-face-set-css><span class=secno>3.6</span>
84-
Interaction with CSS Font Loading and Matching</a></ul><li><a href=#font-face-source><span class=secno>4</span>
85-
The <code>FontFaceSource</code> interface</a><ul class=toc><li><a href=#document-font-face-set><span class=secno>4.1</span>
86-
Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul><li><a href=#font-load-event-examples><span class=secno>5</span>
87-
API Examples</a><li><a href=#changes><span class=secno></span>Changes</a><ul class=toc><li><a href=#changes-since-20130212><span class=secno></span>
88-
Changes from the <span>February 2013 CSS3 Fonts Working Draft</span></a></ul><li><a href=#acknowledgments><span class=secno></span>
89-
Acknowledgments</a><li><a href=#conformance><span class=secno></span>
90-
Conformance</a><ul class=toc><li><a href=#conventions><span class=secno></span>
91-
Document conventions</a><li><a href=#conformance-classes><span class=secno></span>
92-
Conformance classes</a><li><a href=#partial><span class=secno></span>
93-
Partial implementations</a><li><a href=#experimental><span class=secno></span>
94-
Experimental implementations</a><li><a href=#testing><span class=secno></span>
95-
Non-experimental implementations</a></ul><li><a href=#references><span class=secno></span>
96-
References</a><ul class=toc><li><a href=#normative><span class=secno></span>
97-
Normative References</a><li><a href=#informative><span class=secno></span>
98-
Informative References</a></ul><li><a href=#index><span class=secno></span>
99-
Index</a><li><a href=#property-index><span class=secno></span>
100-
Property index</a><li><a href=#issues-index><span class=secno></span>Issues Index</a></ul></div>
71+
<div data-fill-with=table-of-contents><ul class=toc>
72+
<li><a href=#introduction><span class=secno>1</span> Introduction</a>
73+
<li><a href=#fontface-interface><span class=secno>2</span> The <code>FontFace</code> Interface</a>
74+
<ul class=toc>
75+
<li><a href=#font-face-constructor><span class=secno>2.1</span> The Constructor</a>
76+
<li><a href=#font-face-load><span class=secno>2.2</span> The <code>load()</code> method</a>
77+
<li><a href=#font-face-ready><span class=secno>2.3</span> The <code>ready()</code> method</a>
78+
<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=#FontFaceSet-interface><span class=secno>3</span> The <code>FontFaceSet</code> Interface</a>
80+
<ul class=toc>
81+
<li><a href=#set-modifications><span class=secno>3.1</span> Modifications of normal Set methods</a>
82+
<li><a href=#FontFaceSet-events><span class=secno>3.2</span> Events</a>
83+
<li><a href=#font-face-set-load><span class=secno>3.3</span> The <code>load()</code> method</a>
84+
<li><a href=#font-face-set-check><span class=secno>3.4</span> The <code>check()</code> method</a>
85+
<li 7B3C ><a href=#font-face-set-ready><span class=secno>3.5</span> The <code>ready()</code> method</a>
86+
<li><a href=#font-face-set-css><span class=secno>3.6</span> Interaction with CSS Font Loading and Matching</a></ul>
87+
<li><a href=#font-face-source><span class=secno>4</span> The <code>FontFaceSource</code> interface</a>
88+
<ul class=toc>
89+
<li><a href=#document-font-face-set><span class=secno>4.1</span> Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul>
90+
<li><a href=#font-load-event-examples><span class=secno>5</span> API Examples</a>
91+
<li><a href=#changes><span class=secno></span>Changes</a>
92+
<ul class=toc>
93+
<li><a href=#changes-since-20130212><span class=secno></span> Changes from the <span>February 2013 CSS3 Fonts Working Draft</span></a></ul>
94+
<li><a href=#acknowledgments><span class=secno></span> Acknowledgments</a>
95+
<li><a href=#conformance><span class=secno></span> Conformance</a>
96+
<ul class=toc>
97+
<li><a href=#conventions><span class=secno></span> Document conventions</a>
98+
<li><a href=#conformance-classes><span class=secno></span> Conformance classes</a>
99+
<li><a href=#partial><span class=secno></span> Partial implementations</a>
100+
<li><a href=#experimental><span class=secno></span> Experimental implementations</a>
101+
<li><a href=#testing><span class=secno></span> Non-experimental implementations</a></ul>
102+
<li><a href=#references><span class=secno></span> References</a>
103+
<ul class=toc>
104+
<li><a href=#normative><span class=secno></span> Normative References</a>
105+
<li><a href=#informative><span class=secno></span> Informative References</a></ul>
106+
<li><a href=#index><span class=secno></span> Index</a>
107+
<li><a href=#property-index><span class=secno></span> Property index</a>
108+
<li><a href=#issues-index><span class=secno></span>Issues Index</a></ul></div>
101109

102110

103111

@@ -695,7 +703,7 @@ <h3 class="heading settled heading" data-level=3.4 id=font-face-set-check><span
695703
using the <a class=idl-code data-link-for=FontFaceSet/check() data-link-type=argument href=#dom-fontfacesetcheck-font title=font>font</a> and <a class=idl-code data-link-for=FontFaceSet/check() data-link-type=argument href=#dom-fontfacesetcheck-text title=text>text</a> arguments passed to the function,
696704
and let <var>font face list</var> be the return value.
697705
If a syntax error was returned,
698-
reject <var>promise</var> with a SyntaxError exception
706+
throw a SyntaxError exception
699707
and terminate these steps.
700708

701709
<li>

0 commit comments

Comments
 (0)