Skip to content

wpt: Wait for web fonts in onload layout tests - #49510

Merged
yezhizhen merged 2 commits into
servo:mainfrom
gabrielecabrini:tests-onload-font-ready
Nov 2, 2026
Merged

yezhizhen merged 2 commits into
servo:mainfrom
gabrielecabrini:tests-onload-font-ready

Conversation

@gabrielecabrini

@gabrielecabrini gabrielecabrini commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

These tests measure layout in onload, which can fire before web fonts
have loaded. Wait for document.fonts.ready first, as in #49493 and
#49502.

This also removes unused Ahem css in related test files.

Testing: These are test changes. With the font response delayed by 1s
(wptserve trickle pipe), the old tests fail on every run and the
updated tests pass on every run.
Fixes: #49075
Fixes: #49301
Fixes: #47132
Fixes: #47104
Fixes: #47563
Fixes: #47257
Fixes: #49238

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#64517) with upstreamable changes.

@yezhizhen
yezhizhen self-requested a review November 2, 2026 05:47
@yezhizhen yezhizhen changed the title tests: Wait for web fonts in onload layout tests wpt: Wait for web fonts in onload layout tests Nov 2, 2026
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#64517) title and body.

Signed-off-by: Euclid Ye <[email protected]>
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64517).

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#64517) title and body.

@yezhizhen
yezhizhen added this pull request to the merge queue Nov 2, 2026
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 2, 2026
Merged via the queue into servo:main with commit f21caa0 Nov 2, 2026
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 2, 2026
@gabrielecabrini
gabrielecabrini deleted the tests-onload-font-ready branch November 2, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment