You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two focus-ring tests fail on main since #5306 drew every mark as the box's outline #5478
Since #5306 ("Draw every mark round a box as the box's own outline"), a playground control's ring reads 2px where the test expects 4px, and the panned trace canvas's ring extends past its viewport.
Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):
AssertionError: the panned trace canvas, the ring on div.lf-trace-canvas.lf-ring-overlay.lf-projected-mark "Page 1 · Action checkpoi" is not all there: its top edge is 5px outside div.lf-trace-image-viewport "No captured image is ava" (ring 115,155,1085,734 vs band 120,160,1080,729); its left edge is 5px outside div.lf-trace-image-viewport "No captured image is ava" (ring 115,155,1085,734 vs band 120,160,1080,729); i
Introducing change:#5306 (ecf4dc1). Bisect over the bb35e35..52c7000 range ran test_trace_pointer_annotation_stays_inside_the_panned_image_viewport at each step; each test passes on ecf4dc10d^ and fails on ecf4dc10d; each was bisected separately.
CI evidence: first failing push run 41794709035, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.
No cause has been diagnosed past the bisect. Read #5306's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5306 replaced (update the test) or caught a regression (fix the code).
Since #5306, a focused page control wears data-lf-mark="focus". The mark rule drew that as the box's outline at !important, which beat the box's own focus treatment:
the playground candidate's authored 4px outline lost to Leaf's 2px ring;
the trace canvas is a ring overlay that turns its outline off and draws an inset ::after, but it also drew an outline 3px outside, which its clipping viewport cut.
#5524 makes focus alone draw at no weight, as the focus floor does; every other mark stays !important. Both tests fail on a6fefaa77 and pass with the change, along with the neighbouring ring and focus tests. Stills of the focused trace canvas and playground states are pixel-identical between base and head. Its review and CI are still pending.
The repair gives up one piece of #5306's intent. A page's :focus {outline: none} on a commentable control now hides Leaf's focus cue there. #5525 leaves that decision to #5306's author.
Activity
leaf-agent commentedon Nov 5, 2026
Both tests share one cause, and #5524 fixes it.
Since #5306, a focused page control wears
data-lf-mark="focus". The mark rule drew that as the box's outline at!important, which beat the box's own focus treatment:::after, but it also drew an outline 3px outside, which its clipping viewport cut.#5524 makes focus alone draw at no weight, as the focus floor does; every other mark stays
!important. Both tests fail ona6fefaa77and pass with the change, along with the neighbouring ring and focus tests. Stills of the focused trace canvas and playground states are pixel-identical between base and head. Its review and CI are still pending.The repair gives up one piece of #5306's intent. A page's
:focus {outline: none}on a commentable control now hides Leaf's focus cue there. #5525 leaves that decision to #5306's author.