Repository navigation
Closed
Labels
C-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-intermittentProblem reproduces intermittently.
Description
▶ OK /css/css-inline/baseline-source/baseline-source-first-textarea-001.tentative.html
│ ▶ FAIL [expected PASS] .target > * 1
│ │ → assert_equals:
│ │ → <span data-offset-y="29"></span>
│ │ → offsetTop expected 29 but got 33
│ │ FAIL [expected PASS] .target > * 3
│ │ → assert_equals:
│ │ → <span data-offset-y="29"></span>
│ │ → offsetTop expected 29 but got 33
│ │ FAIL [expected PASS] .target > * 5
│ │ → assert_equals:
│ │ → <span data-offset-y="29"></span>
│ │ → offsetTop expected 29 but got 33
│ │
│ │ assert_tolerance@http://web-platform.test:8000/resources/check-layout-th.js:24:22
│ │ checkExpectedValues@http://web-platform.test:8000/resources/check-layout-th.js:87:25
│ │ checkSubtreeExpectedValues@http://web-platform.test:8000/resources/check-layout-th.js:7:44
│ │ window.checkLayout/</<@http://web-platform.test:8000/resources/check-layout-th.js:229:34
│ │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2869:25
│ │ test@http://web-platform.test:8000/resources/testharness.js:633:30
│ │ window.checkLayout/<@http://web-platform.test:8000/resources/check-layout-th.js:222:13
│ │ window.checkLayout@http://web-platform.test:8000/resources/check-layout-th.js:220:29
└ └ onload@http://web-platform.test:8000/css/css-inline/baseline-source/baseline-source-first-textarea-001.tentative.html:2:12
Metadata
Metadata
Assignees
Labels
C-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-intermittentProblem reproduces intermittently.
Activity
tusharkhatriofficial commentedon Sep 14, 2026
Hi, is this resolved or needs working on!
jdm commentedon Sep 14, 2026
It is not resolved, but intermittent layout test failures like this are not good issues for new contributors. Try https://book.servo.org/contributing/finding-things-to-do.html for suggestions!
tusharkhatriofficial commentedon Sep 14, 2026
I dug into this a bit. I think it's the same thing you found in #37054: the load event fires before Ahem finishes loading, so checkLayout runs with the fallback font.
It never failed for me in 50 normal runs, but if I serve the font with a delay (url('/fonts/Ahem.ttf?pipe=trickle(d3)')) in a local copy of the test, it fails every time on the same subtests (1, 3, 5), with offsetTop 34 instead of 29. The same copy passes if it waits for document.fonts.ready first.
From what I can tell, wait_until_load_blockers_have_resolved doesn't look at pending web fonts at all, and stylesheet font loads only start during layout (rebuild_font_face_set), so they might not have started yet when the load event is checked.
Would delaying the load event while web fonts are still loading be an acceptable fix? I'd like to try it if that sounds reasonable.
jdm commentedon Oct 1, 2026
Whoops, sorry for missing your comment! I don't think that delaying the load event for web fonts is desirable; it would make tests more stable but make observable performance on websites worse. web-platform-tests/wpt#22347 is an example of prior art for rewriting tests using Ahem to explicitly wait for document.fonts.ready, so I think we should do that instead.
servo-highfive commentedon Oct 1, 2026
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.
If you intend to work on this issue, then add
@servo-highfive: assign meto your comment, and I'll assign this to you. 😄Please read our policy on AI contributions before getting started.
gabrielecabrini commentedon Nov 1, 2026
@servo-highfive: assign me
servo-highfive commentedon Nov 1, 2026
Hey @gabrielecabrini! Thanks for your interest in working on this issue. It's now assigned to you!
tests: Wait for fonts in baseline-source textarea tests (servo#49493)