Skip to content

wpt: Wait for web fonts before measuring in Ahem-based testharness tests - #64511

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_49502
Nov 1, 2026
Merged

servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_49502

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

These tests read layout synchronously while the page is parsing, before the
Ahem web font from /fonts/ahem.css has loaded. Their measurements then use a
fallback font's metrics, and the results depend on load timing. Run the
measurements after document.fonts.ready so the results are deterministic.

With the font loaded, every subtest of
block-in-inline-self-collapsing-margin-001.html passes, so its expectation
file is removed.

Fixes #49500
Fixes #49491
Fixes #49488
Fixes #49487
Fixes #43763
Reviewed in servo/servo#49502

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync
servo-wpt-sync merged commit 93d221d into web-platform-tests:master Nov 1, 2026
31 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_49502 branch November 1, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants