Skip to content

test: name each dense-hint figure on the figure, not its svg - #6274

Merged
leaf-agent merged 1 commit into
mainfrom
fix/dense-hint-figure-name
Nov 17, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/dense-hint-figure-name

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_dense_selection_hints_stay_short_and_reach_an_atomic_visual has failed on every push run since #6248, most recently run 44026724181. After two Tabs, the live region reads Hint s: figure. Press Enter to choose. where the test expects figure: Visual 0. #6248 deliberately stopped addressableLabel from borrowing a descendant's aria-label, and this fixture named each <figure> only through its child <svg role="img" aria-label="Visual N">. So the figure now has no name, which is what #6248 intended.

The fixture now declares each name where the page should state it: aria-label on the figure, which the element's own accessible name still reads (accessibleNaming in browser/runtime/addressable-names.js). The drawing svg is aria-hidden. The assertions are unchanged, so the test still checks that a two-key tail hint reaches the figure and announces its name. No product behavior moves.

Verification:

Refs #3985 — automated triage

#6248 stopped addressableLabel borrowing a descendant's aria-label, so a
figure named only through its child <svg aria-label> now announces as a
bare "figure". test_dense_selection_hints_stay_short_and_reach_an_atomic_visual
built its sixty figures that way and expected "figure: Visual 0" after two
Tabs. The fixture now declares each name with aria-label on the figure,
which the figure's own accessible name still reads, and hides the drawing
svg. The assertion and the behavior it protects are unchanged.

Refs #3985
@leaf-agent
leaf-agent merged commit 312bc4a into main Nov 17, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/dense-hint-figure-name branch November 17, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant