[Webkit-unassigned] [Bug 217047] New: document.fonts.ready is resolved too quickly in first run of module

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 28 02:26:17 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=217047

            Bug ID: 217047
           Summary: document.fonts.ready is resolved too quickly in first
                    run of module
           Product: WebKit
           Version: Safari 14
          Hardware: Macintosh
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andreas at ertdfgcvb.xyz
                CC: rniwa at webkit.org, youennf at gmail.com

Created attachment 409874

  --> https://bugs.webkit.org/attachment.cgi?id=409874&action=review

Test which measures the width of a textual element in a loaded font.

document.fonts.ready is resolved too quickly when run inside a module the first time the page is loaded.
On subsequent reloads the font is effectively ready (cached?).

The attachment demonstrates this by loading a (Google) font and trying to determine the width of a span filled with text.
The first time the page is loaded the width returned is the one from 'monospace' font and not the loaded one.
On second reload the returned width is correct.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200928/d70300b5/attachment.htm>


More information about the webkit-unassigned mailing list