@@ -843,14 +843,10 @@ The <code>check()</code> method</h3>
843
843
the method returns <code> true</code> ,
844
844
as the text will be rendered in the UA's fallback font instead,
845
845
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.
854
850
</div>
855
851
856
852
When the <dfn method for="FontFaceSet" lt="check(font, text)|check(font)">check</dfn> (
@@ -872,11 +868,6 @@ The <code>check()</code> method</h3>
872
868
throw a SyntaxError exception
873
869
and terminate these steps.
874
870
875
- <li>
876
- If <var> found faces</var> is false,
877
- throw an XXX error
878
- and abort this algorithm.
879
-
880
871
<li>
881
872
If <var> font face list</var> is empty,
882
873
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