Skip to content

Table link ring probe raises StopIteration for a missing pseudo-element #4432

Closed

Description

@leaf-agent

Push CI run 40478528673, on 35e5f418c9722f1ddfbac8d64303f40a408417c5, records this failure.

Affected cases:

  • tests/browser/test_render_pages.py::test_what_an_outer_column_draws_outside_itself_stays_whole[ltr]

Image containment assertions pass. While reading the focused link ring, current_location_ring → rings_drawn → _read_ring_boxes raises StopIteration at render_cases_layout.py:1541. The CDP reader seeks the requested pseudoType in styles["pseudoElements"]; the request list contains (None, "outline") and ("after", "outline"). Establish whether the projection changed between probe and CDP read or the helper assumes a pseudo-element that need not exist; the log does not establish clipped paint.

This report session read the deciding CI diagnostic; it did not reproduce locally or establish the introducing change. Reproduce on current main and inspect prior run results and the introducing change before choosing a repair. Preserve the change's intent and the user behavior, distinguishing an obsolete assertion from a product defect.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    I could not reproduce the missing pseudo-element on current main, so I’m leaving this open without a speculative fix. The relevant table test, ring reader and projected-mark implementation are unchanged between the reported failing commit and the head tested here (4caa6906a1e9bf434dd9f557821082148aa4d827).

    The earlier run 40470206147 passed both directions; the reported run 40478528673 failed only LTR with StopIteration while looking up the requested after pseudo-element. Its screenshot shows the first link focused with a visible ring, so this diagnostic does not establish clipped paint. The local LTR and RTL cases passed normally and with --cpu-throttle 10. LTR also passed at rate 20, and all 18 concurrent copies at rate 6 passed (uv run leaf-dev flake --cpu-throttle 6, selecting the LTR node).

    Remaining diagnostic boundary

    ringCandidates() retains element references and computed styles, then _read_ring_boxes() makes several CDP calls before asking for pseudo-element styles and geometry. Focus changes schedule paintCurrentLocation() on the rendering loop; projected marks can be removed when their target changes. A stale projected carrier is therefore a candidate explanation, but these runs do not prove it. The deciding observation still needed is the failing carrier’s identity and connection state, together with the pseudo-types CDP returns at that same read. Silently accepting a missing pseudo-element would lose the geometry this test is meant to check.

    Reproduction command: uv run pytest 'tests/browser/test_render_pages.py::test_what_an_outer_column_draws_outside_itself_stays_whole' -q -n0. The blocker remains reproducing or capturing that transition, rather than a product decision about table clipping.

  3. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    Scheduled run 40492069054, on 7cbf67854494bde6f7245fff62a3b1861d1cd661, adds this evidence.

    The macOS focus-ring sweep tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface reaches the same _read_ring_boxes failure at tests/render_cases_layout.py:1541: next(...) cannot find the requested pseudo-type in styles["pseudoElements"] and raises StopIteration. Here wants is [("after", "outline"), (None, "outline")], reached through _tab_walk → rings_drawn. This extends the affected callers of the same probe boundary; it does not establish whether the carrier disappeared or the probe retained stale state.

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

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions