Repository navigation
Update the focus-ring sweep's samples for the On me mark, command reference rows and folded contents - #5253
Merged
Conversation
…erence rows and folded contents The sweep stopped at three samples that later changes made stale: - On me: #4715 puts the mark aside while the caret is in the panel's field. The sampler pressed Tab before focusing each sample to make that focus keyboard focus, and from the leaf button that Tab stood in the field, so the mark was hidden and could not take focus. It now presses Shift, which sets keyboard modality and moves nothing. - Command reference rows: #5118 built them by the row role and deleted their own ring rule, so their ring is the floor ring. - Contents link: the gallery's lf-toc stands in the column, where its outline is a folded native disclosure. `:visible` matched no link, so the sample waited out its timeout instead of reaching the runtime's reveal, which opens the disclosure. No product behavior changes. Closes #5179
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.
test_each_sampled_focus_ring_is_shown_whole_in_its_surfacehas failed in the scheduledcirun on Linux and macOS since run 41432142330. Three of its samples were out of date with changes that were meant to happen, and each stopped the sweep in turn. This PR updates the three samples, changes no product code, and leaves every surface's ring assertion in place.quickHiddeninbrowser/runtime/floating-panel.js). Before focusing each sample, the sampler pressed Tab so that the focus would count as keyboard focus. From the leaf button, that Tab landed in the field, which hid.lf-fp-quick, and.lf-fp-on-usercould not take focus. The sampler now presses Shift instead. Shift sets the browser's keyboard modality for:focus-visible, which Leaf'sdata-lf-focus-visiblefollows (visibleFocusinbrowser/runtime/focus.js), and it moves no focus. I checked in Chromium thatfocus()after a Shift press matches:focus-visible, and after a click alone it does not.rowrole and deleted their own[data-lf-focus-visible]rule, so their ring now comes from the floor rule. The sample now expectsFLOOR_RING.lf-tocstands in the reading column, not in a sidebar track, so its outline is a folded native disclosure (lf-toc.jsheader,#measure). The selector's:visiblematched no link, so the locator waited out its 120 s timeout before the runtime'srevealcould open the disclosure. Without:visible,revealopens the outline and the link's ring is measured.Verification: on a local run at main
89482e4a5, the test failed exactly as in CI. After each fix, the next stale sample surfaced. With all three fixes the whole test passes (1 passed in 451.67s,-n0). This PR's CI runs the edited journey on the rebased head.Closes #5179 — automated triage