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
test_target_brackets_and_focus_share_the_visible_boundary fails on main since #5524 let a box's own focus style outrank Leaf's ring #5647
Since #5524 (67ed4f9aa, "let a focused box's own focus treatment outrank Leaf's focus mark"), tests/browser/test_render_aim.py::test_target_brackets_and_focus_share_the_visible_boundary fails on main, in its rounded subtest:
test_render_aim.py:3680 (after Escape, the node is focused and wears data-lf-mark="focus")
AssertionError: {'style': 'dashed', 'width': 1, 'offset': 6, 'color': 'rgb(60, 57, 52)', …}
assert … 'dashed' == 'solid'
git bisect run over 16cb9ebb4..53337b5e9 landed on 67ed4f9aa: it fails there and passes at 9ff61153b. It still fails on main 903e1d106. The first failing push run is 42091376199 at 53337b5e9, and it still fails in 42320062138.
#5524 made focus alone draw Leaf's mark at no weight, so a box's own focus treatment wins: here, the fixture's dashed author outline. The test expects the focused element's boundary to be Leaf's solid 2 px ring at the aim region's offset, the same boundary the target brackets used. These now disagree on purpose. What's left to decide is whether the test should accept the box's own focus ring once only focus is marked, or whether #5524 should keep Leaf's ring where the box's own treatment is not a focus style (the fixture's rounded outline is dashed whether or not it has focus).
#5668 updates the test to match #5524. The surfaces.css rule #5524 added says focus alone loses to "an author's outline". The rounded fixture's outline: 1px dashed is that kind of outline, so after Escape the box shows it instead of Leaf's ring. The square target, which has no outline of its own, still checks Leaf's focus ring on the region's perimeter. The test fails on main at a54c1bcea and passes with the change.
The other choice the issue raised was keeping Leaf's ring when the box's outline isn't a focus style. That is the question #5525 already puts to the maintainer, so I left it there with this case. The PR is waiting on CI and review.
Activity
leaf-agent commentedon Nov 7, 2026
#5668 updates the test to match #5524. The
surfaces.cssrule #5524 added says focus alone loses to "an author's outline". Theroundedfixture'soutline: 1px dashedis that kind of outline, so after Escape the box shows it instead of Leaf's ring. Thesquaretarget, which has no outline of its own, still checks Leaf's focus ring on the region's perimeter. The test fails on main ata54c1bceaand passes with the change.The other choice the issue raised was keeping Leaf's ring when the box's outline isn't a focus style. That is the question #5525 already puts to the maintainer, so I left it there with this case. The PR is waiting on CI and review.