Repository navigation
fix: keep the trace metadata's text off its inset focus ring, and accept two ring cuts #5306 and #5614 chose - #6200
Merged
Merged
Conversation
… accepted ring cuts as accepted The trace's metadata scroller wears its ring one band inside its edge but had no padding, so after #5306 drew marks as the box's own outline its words covered the ring's left run. It now starts its words a ring's room in. The focus-ring journey's reader also reported two outcomes their changes chose: - #5306: a mark on a box that ends the page at the window's foot, such as a question filling a full-height workspace, runs its bottom band below the window, since Leaf doesn't pad the page for a mark. The reader no longer reports that bottom run for a non-focused, non-fixed box at the page's end. - #5614: a focus preview may cover page content beyond its control and the controls the user could work next. The reader no longer samples another box's ring under the open preview; the focused control's own ring is still read. Refs #6192
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After #6193's sample updates,
test_each_sampled_focus_ring_is_shown_whole_in_its_surfacestill reported eight ring faults, which earlier failing samples had hidden. They have three causes. This PR fixes the one that is a real defect. For the other two, it updates the ring reader to accept outcomes that #5306 and #5614 chose on purpose. With this change the journey passes on main3bc561561. Without it, a tab walk over data-explorer, code-comparison and review-a-fix on that commit still reports all three kinds.The trace's metadata scroller covered its own ring (review-a-fix).
.lf-trace-metadatawears its ring one band inside its edge, but it had no padding. Once #5306 drew every mark as the box's own outline, the scrolled words painted over the ring's left run. The scroller now starts its words a ring's room (5px) in, as the token's rule for an inset ring expects (tokens.css, "Where it stands"). On screen, this changes the review-a-fix trace's metadata pane: its text moves 5px right, and its focused ring's left edge shows whole.A full-height question's mark runs below the window (data-explorer, notification-playground, shadow-scale). #5306 says so in its description: a question filling a full-height workspace wears its ring 3px outside itself and reaches the window's foot, "so the ring's bottom run falls below the window".
browser/AGENTS.mdrules out padding the page for a mark. The reader now skips that bottom run when the ring belongs to a box that isn't focused, isn't fixed, and ends the page at the window's foot. The focused control's own ring is still held to the foot. So is a fixed box:test_the_ring_reading_sees_and_measures_a_ring_cast_as_a_shadowplants an unfocused fixed box there and still passes.A focus preview covers the question around its control (code-comparison, command-hub, motion-playground). Since #5614, a keyboard step onto a control shows its preview. The preview stands clear of the control and of the controls the user could work next, and may cover the rest of the page. Here the "Show instruction" and "Copy Markdown" previews lie over the enclosing question's location ring. The reader no longer samples another box's ring under an open
#lf-preview, but it still reads the focused control's own ring there.How each cause was dated
The test's last pass in a scheduled run was
7cbf67854(Oct 27). Runs from Oct 28 to Nov 3 failed on earlier samples, and the Nov 4 run already listed the full-height and trace faults. I rangit bisect runover a tab walk of the affected examples:ecf4dc10d(Draw every mark round a box as the box's own outline, brackets included #5306), clean at its parent5bdc6fa9b.ecf4dc10d, first bad commit4248d1f4c(Pointing reads; pressing acts: one owner previews every control #5614).Checks run on the branch: the journey itself,
tests/browser/controls/test_rings.py(27 passed), andtests/browser/test_render_playwright_trace.py. In that last file,test_trace_tree_opened_by_the_browser_keeps_its_matchfailed once under-n 3on this branch. It also fails under-n 3on unchanged main, with the same row position (480 against a 12–111 band), so this change doesn't cause it.Closes #6192 — automated triage