Skip to content

Commit 14f5d0a

Browse files
committed
Per heycam's feedback, queue the rejection alongside the attribute setting so the timing works better.
1 parent 1b29a55 commit 14f5d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-font-loading/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ The Constructor</h3>
228228
2. If the {{source!!argument}} argument was a {{DOMString}},
229229
parse it according to the grammar of the 'src' descriptor of the CSS ''@font-face'' rule.
230230
If it fails to parse correctly,
231-
reject <var>font face's</var> {{[[FontStatusPromise]]}} with a DOMException named "SyntaxError" exception,
232-
queue a task to set <var>font faces</var> {{FontFace/status}} attribute to "error",
231+
queue a task to set <var>font faces</var> {{FontFace/status}} attribute to "error"
232+
and reject <var>font face's</var> {{[[FontStatusPromise]]}} with a DOMException named "SyntaxError" exception,
233233
and abort these steps;
234234
otherwise, set <var>font face's</var> internal {{[[Urls]]}} slot to the string.
235235

0 commit comments

Comments
 (0)