From 5996c60433352ece3cbe5787089858d84cf0eaad Mon Sep 17 00:00:00 2001 From: jfkthame Date: Wed, 2 Dec 2020 14:33:42 +0000 Subject: [PATCH] Remove throw --- css-font-loading-3/Overview.bs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/css-font-loading-3/Overview.bs b/css-font-loading-3/Overview.bs index d916ee21796..08212d85d73 100644 --- a/css-font-loading-3/Overview.bs +++ b/css-font-loading-3/Overview.bs @@ -843,14 +843,10 @@ The check() method the method returns true, as the text will be rendered in the UA's fallback font instead, and won't trigger any font loads. - * If none of the specified fonts exist, - even though this is technically similar to the previous case - (in that text rendered with that font list would just use the UA fallback font), - the method instead throws an error. - This is because such a situation is almost certainly either a typo, - or the result of changing the name of a downloadable font - and forgetting to update all places the old name was used, - and an error is more useful than a vacuous true. + * Likewise, if none of the specified fonts exist (for example, names are mis-spelled), + the method also returns true, + because using this font list will not trigger any loads; + instead, fallback will occur. When the check( @@ -872,11 +868,6 @@ The check() method throw a SyntaxError exception and terminate these steps. -
  • - If found faces is false, - throw an XXX error - and abort this algorithm. -
  • If font face list is empty, or all fonts in the font face list either have a {{FontFace/status}} attribute of "loaded" or are system fonts,