Skip to content

Commit c8788c6

Browse files
jfkthamefantasai
authored andcommitted
Remove throw
1 parent 83e344e commit c8788c6

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

css-font-loading-3/Overview.bs

+4-13
Original file line numberDiff line numberDiff line change
@@ -843,14 +843,10 @@ The <code>check()</code> method</h3>
843843
the method returns <code>true</code>,
844844
as the text will be rendered in the UA's fallback font instead,
845845
and won't trigger any font loads.
846-
* If none of the specified fonts exist,
847-
even though this is technically similar to the previous case
848-
(in that text rendered with that font list would just use the UA fallback font),
849-
the method instead throws an error.
850-
This is because such a situation is almost certainly either a typo,
851-
or the result of changing the name of a downloadable font
852-
and forgetting to update all places the old name was used,
853-
and an error is more useful than a vacuous <code>true</code>.
846+
* Likewise, if none of the specified fonts exist (for example, names are mis-spelled),
847+
the method also returns <code>true</code>,
848+
because using this font list will not trigger any loads;
849+
instead, fallback will occur.
854850
</div>
855851

856852
When the <dfn method for="FontFaceSet" lt="check(font, text)|check(font)">check</dfn>(
@@ -872,11 +868,6 @@ The <code>check()</code> method</h3>
872868
throw a SyntaxError exception
873869
and terminate these steps.
874870

875-
<li>
876-
If <var>found faces</var> is false,
877-
throw an XXX error
878-
and abort this algorithm.
879-
880871
<li>
881872
If <var>font face list</var> is empty,
882873
or all fonts in the <var>font face list</var> either have a {{FontFace/status}} attribute of "loaded" or are system fonts,

0 commit comments

Comments
 (0)