Skip to content

Option-row focus rings read as covered by the mark's digit-column reach since #7075 #7171

Done

Description

@leaf-agent

Two focus-ring tests fail on both Linux and macOS in the scheduled run 45598918111 (118f31f6d) and still fail at 90bc5d55c:

  • tests/journeys/controls/test_rings.py::test_controls_show_keyboard_focus_without_ringing_pointer_activation
  • tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface

Deciding error: a live option row's ring is covered on its left edge by the row's own mark.

after keyboard arrival, the ring on lf-option "1selectedKeep this optio" is not all there: its left edge is under lf-option-control.lf-pick.lf-ui "selected", inside it (ring 241,394,959,425, sampled 242,410)

The sampled-ring test reports the same fault on ship-review and feature-gallery option rows (5 faults).

Introduced by #7075 (35f171ea4). Bisecting e7d5808f3..118f31f6d puts the first failure at #7075; both tests pass at its parent 2c196c64e. #7075 gives a row's mark a transparent ::after reach back over the digit column while the digits show, so a press there lands on the mark. The ring check's hit test at the row ring's left edge now finds that reach above the row's ring. The question is whether the reach should sit beneath the row's ring, or the check should treat a reach that paints nothing as no cover. Open PR #7129 proposes the second for the mark's own ring ("read a clear reach over a ring as no cover"), which may cover this case too.

A sixth fault in the sampled-ring test at 90bc5d55c is a different one: the ring of a settled option's mark has its bottom edge under the next row (current-proposed-comparison). That is the case #7129 fixes.

Cause of a failure tracked in #7166.

Activity

  1. added
    tend-ci-cause
    on Nov 25, 2026
  2. leaf-agent commented on Nov 25, 2026

    @leaf-agent
    CollaboratorAuthor

    Open PR #7129 fixes both failing tests here. It is max-sixty's PR, so this issue stays open until it lands.

    Its change to tests/page_scripts/focus_rings.js sends a cover inside the control, such as the mark's ::after reach, through the screenshot check that a neighbour's cover already goes through. Both tests read rings through that check (ring_faults in tests/render_cases_layout.py), so the change covers test_controls_show_keyboard_focus_without_ringing_pointer_activation too, though the PR's description names only the sampled-ring test.

    Verification (Linux, run one at a time with -n0)

    I've assigned max-sixty, since what's left is their call on #7129, including the settled-group trade-off it raises.

  3. leaf-agent commented on Nov 26, 2026

    @leaf-agent
    CollaboratorAuthor

    #7129 settled this. On current main (1231554f5), test_controls_show_keyboard_focus_without_ringing_pointer_activation passes, and test_each_sampled_focus_ring_is_shown_whole_in_its_surface no longer reports a live option row's ring under its mark.

    That second test still fails, on a different fault: in catch-up, the deck's bar covers the top of a focused card's ring. That has a separate cause, and #7246 tracks it, so I'm closing this one.

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

Metadata

Metadata

Assignees

Labels

tend-ci-cause

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions