Skip to content

Intermittent failure in /css/css-inline/baseline-source/baseline-source-first-textarea-001.tentative.html #48028

Closed

Description

@jdm
▶ 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

Activity

  1. added
    I-intermittent
    on Sep 13, 2026
  2. tusharkhatriofficial commented on Sep 14, 2026

    @tusharkhatriofficial

    Hi, is this resolved or needs working on!

  3. jdm commented on Sep 14, 2026

    @jdm
    MemberAuthor

    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!

  4. tusharkhatriofficial commented on Sep 14, 2026

    @tusharkhatriofficial

    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.

  5. jdm commented on Oct 1, 2026

    @jdm
    MemberAuthor

    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.

  6. added
    E-less-complex
    on Oct 1, 2026
  7. servo-highfive commented on Oct 1, 2026

    @servo-highfive

    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 me to your comment, and I'll assign this to you. 😄

    Please read our policy on AI contributions before getting started.

  8. gabrielecabrini commented on Nov 1, 2026

    @gabrielecabrini
    Contributor

    @servo-highfive: assign me

  9. added
    C-assigned
    on Nov 1, 2026
  10. servo-highfive commented on Nov 1, 2026

    @servo-highfive

    Hey @gabrielecabrini! Thanks for your interest in working on this issue. It's now assigned to you!

  11. added a commit that references this issue on Nov 1, 2026
    ec4d71b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

C-assignedE-less-complexI-intermittent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions