Created attachment 337788 [details] strange result if you use function `document.fonts.check` for random font name result will be `true` document.fonts.check('12px normal ANY_RANDOM_NAME'); // return true O_o Safari desktop 11-10
<rdar://problem/39380289>
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using instructions from Comment 0. 1) On this bug page, open Developer Tools and Console 2) Type - document.fonts.check('12px normal ANY_RANDOM_NAME'); 3) Hit Enter and it will show "true" I also get "true" doing same steps in Firefox Nightly 105 while only Chrome Canary 106 show "false" but this Chrome bug suggests that Chrome behavior is wrong and incorrect as per web-spec: Link - https://bugs.chromium.org/p/chromium/issues/detail?id=591602 WHATWG Github - https://github.com/w3c/csswg-drafts/issues/5744 Appreciate if someone can comment whether we need to fix this or we can ignore this and ask Chrome to change their behavior. Thanks!
*** This bug has been marked as a duplicate of bug 156035 ***