Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document.fonts.ready() does not wait for fonts loading #1485

Open
kalenikaliaksandr opened this issue Sep 22, 2024 · 0 comments
Open

document.fonts.ready() does not wait for fonts loading #1485

kalenikaliaksandr opened this issue Sep 22, 2024 · 0 comments

Comments

@kalenikaliaksandr
Copy link
Member

This API is used by WPT to wait until Ahem (testing font) is loaded before capturing layout measurement. Since currently our implementation of ready() simple returns resolved promise right away, instead of actually waiting for fonts loading, a giant portion of WPT layout test are flaky.

Moreover document.fonts currently does not include fonts defined in CSS using @font-face, so it might be a good idea to solve that first.

Related spec https://drafts.csswg.org/css-font-loading/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant