Skip to content

test_a_resolve_s_notice_stands_for_that_resolve_alone: Threads rows move 10 px against a sticky heading's inset when the CPU is slowed #7386

Done

Description

@leaf-agent

tests/browser/test_render_floating_panel.py::test_a_resolve_s_notice_stands_for_that_resolve_alone fails at its consume_browser_errors call (line 524) on current main (21c613f05) when the CPU is slowed. With uv run pytest -n0 -q --cpu-throttle 3 <node-id> it failed 10 of 10 runs. Unthrottled, it failed 0 of 58 runs alone and once in a parallel (-n 3) selection with #7385 applied.

The test expects the refusal of a held Resolve to move one thing without input: the Resolved row (button.lf-fp-settled), which the leaving Threads view pushes down. Each throttled failure also reports the Threads rows' text moving 10 px up against a sticky-inset credit of 30 px from h3.lf-rows-head (top 0 → 40 px), leaving a −40 px residual:

button.lf-row.lf-fp-settled.lf-disclosure-marker.lf-ui.lf-ui-face moved without input by (0, 75)px; the same frame moved leaf-floating-panel.lf-ui.lf-floating-panel, div.lf-fp-stage
#text in span.lf-row-main moved without input by (0, -10)px
#text in span.lf-row-end moved without input by (0, -10)px
row text evidence: "animation_terms": [{"branch": "sticky_inset", "owner": ["h3.lf-rows-head"], "axis": "top", "amount": 30, "inputs": {"property": "top", "before": "0px", "after": "40px", ...}}], "residual": {"left": 0, "top": -40}

#5727 and #5766 dealt with the settled row's move on this path. The rows' extra move is what this issue tracks. I haven't established whether the page draws that −10 px or the watch misreads the sticky heading's inset. I found this while verifying #7385, which leaves the failure unchanged under throttle.

Activity

  1. leaf-agent commented on Nov 27, 2026

    @leaf-agent
    CollaboratorAuthor

    Diagnosis in progress: #7367 introduced this, and the page does draw the heading 10 px up, though the watch's −40 px residual also shows it credits none of the carry that moves it. No fix yet.

    Cause commit. Under --cpu-throttle 3, run alone with -n0, f5b4d7933's parent passes 8 of 8 and f5b4d7933 (#7367, "Keep a floating-panel view that is fading out as it was drawn") fails 4 of 4. Current main (21c613f05) failed on its first throttled run with the same three findings as the report.

    What the page draws. I logged each frame's computed styles and rects from the refusal on. The rows that move are the Open group heading (h3.lf-rows-head, its label and count) in the Threads view that is fading out (data-lf-leaving):

    frame leaving view translate view top h3 top h3 top on screen its section's top
    first after the refusal none 771.2 0px 771.2 771.2
    next 0px -40px 731.2 40px 761.2 731.2

    From the next frame on, only the arriving thread view is drawn. Since #7367, the leaving view keeps its height and is "carried from where it stood (followBox)". Here box-motion carries it 40 px up and counters its sticky heading with top: 40px so the heading keeps its line. The heading's section is only 71 px tall, though, so sticking stops it 30 px down. On screen the heading moves 10 px up, at full opacity, for one starved frame. Before #7367 the leaving view was not held at its own height, and the test passes.

    What the watch credits. stickyInsetMotion credits the heading's 30 px within its section. That part is right: within is in its span. The remaining −40 px is the section's ride on the view's translate carry, and the watch credits none of it to the heading's text. With the carry credited, the residual would be the −10 px the page draws, not −40 px.

    Open questions. Two questions are still open, and they decide the repair:

    1. Why does the watch's carry credit (carriesWithin / carriedMotion in tests/shift_watch.js) not reach the text in the leaving view? The settled row in the same frame is judged as a 75 px move and also has no carry term. The next experiment is to log whether carrySteps holds the leaving view's animation at that frame, and which of carriesBack / countersCarry / carriesWithin rejects it.
    2. Whether a stuck head should be countered beyond what its containing block lets it stick. Holding the line would mean clamping the counter in dom/box-motion.js. Alternatively the watch could keep failing the 10 px the page really draws. A third option is to not carry a view that is fading out. That would give up part of Keep a floating-panel view that is fading out as it was drawn #7367's intent, so it would need its own issue addressed to its author per "Reading a red suite".

    The issue stays open as engineering work. The next step is question 1, which doesn't need a maintainer.

  2. leaf-agent commented on Nov 28, 2026

    @leaf-agent
    CollaboratorAuthor

    Fixed by #7420 (da94c59), which removed the floating panel's view fade-out. The −10 px move came from the Threads view that was still fading out, which #7367 held at its own height, so its sticky heading could stick only part of the carry. A view now goes in the same paint that draws the next, and the test no longer expects the Resolved row to move.

    On main at cd2495a, uv run pytest -n0 -q --cpu-throttle 3 tests/browser/test_render_floating_panel.py::test_a_resolve_s_notice_stands_for_that_resolve_alone passed 3 of 3 runs, where this report saw 10 of 10 fail.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions