Skip to content

Focus ring sweep rejects a painted tab ring because of CSS whitespace #4412

Closed

Description

@leaf-agent

The focus-ring sweep stops at #pr-flow-tab because its expected CSS selector fragment contains .lf-rendered:has(> :is(lf-tab, lf-part), while the browser reports a newline after :has(. The diagnostic shows the intended lf-tabs.lf-rendered ring is drawn, is local to the sample, and has a paint rule; the substring comparison rejects its formatting.

Reproduced with uv run pytest tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface -q -n0 on main before #4405, and again after its specimen update. An isolated run selecting only the #pr-flow-tab page sample also fails against #4405's base. This is separate from #4241's missing plan disclosure and from #4125's clipped-ring design decision.

The repair should make paint-rule identification independent of insignificant CSS formatting at its shared boundary, preserving the assertion that the intended rule actually painted the sampled ring. Inspect the other expected-rule fragments before choosing a normalization or matching approach, and rerun the complete sweep to expose any later findings.

Activity

  1. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    #4413 fixes the formatting mismatch by reading Chromium's serialized selectors while retaining its matched-selector selection. The isolated tab specimen fails on the base and passes with the fix; the regression and other focused ring checks pass, and all gating PR checks passed on 6124f9e44. The dedicated automated landing run now owns the merge.

    The full sweep passes the tab specimen, then exposes a separate stale paragraph-ring expectation in release-notes. That failure also reproduces on unchanged main and is tracked in #4414.

  2. added a commit that references this issue on Oct 27, 2026
    35e5f41
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