Skip to content

test(a11y): Window Splitter contract and ResizeHandle binding - #7485

Merged
cixzhang merged 19 commits into
mainfrom
a11y-window-splitter-contract
Oct 14, 2026
Merged

cixzhang merged 19 commits into
mainfrom
a11y-window-splitter-contract

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What this proves

component:Resizable AR1 (the Window Splitter adoption recorded in #7464 under spec:AST-020 FR15) now has an executable contract and a binding. A keyboard or screen-reader user on a resize handle gets: a named separator that states its position and bounds, says which axis it lies along, names the pane it resizes, moves by a step with the arrows (the inline arrows following the reading direction under RTL, and flipping with isReversed), collapses and restores the pane with Enter, jumps to the bounds with Home/End, and — when disabled — is exposed aria-disabled and does not move (its Tab-order removal is the component's own test, outside this contract).

Test-only: no runtime, docs, or Changeset. Enforcement follows spec:AST-020 FR9: APG-required parts are required; Home/End (optional in APG) are advisory (End is compared against the aria-valuemax the separator exposes, or the minimum Home reached when none is exposed) until AR1 is current.

Expectations (AST-020 FR13)

Expectation Sources Layer Enforcement
windowsplitter.separator.role-and-name WCAG 4.1.2, APG Window Splitter, APG Window Splitter accessibility-tree required
windowsplitter.separator.position-and-minimum WCAG 4.1.2, APG Window Splitter dom required
windowsplitter.separator.maximum WCAG 4.1.2, APG Window Splitter dom required
windowsplitter.separator.orientation WCAG 4.1.2, APG Window Splitter dom required
windowsplitter.separator.controls-pane WCAG 1.3.1, APG Window Splitter dom required
windowsplitter.keys.arrows-move WCAG 2.1.1, APG Window Splitter real-browser required
windowsplitter.keys.enter-collapses-and-restores WCAG 2.1.1, APG Window Splitter real-browser required
windowsplitter.keys.home-end WCAG 2.1.1, APG Window Splitter real-browser advisory
windowsplitter.separator.unavailable-keeps-position WCAG 4.1.2, APG Window Splitter real-browser required

Exemptions: 1.1.1-non-text-content → the binding component; 1.3.1-info-and-relationships → the binding component and composing page (remainder only); 1.3.2-meaningful-sequence → the binding component and composing page; 1.3.5-identify-input-purpose → the binding component; 1.4.1-use-of-color → the binding component and theme; 1.4.3-contrast-minimum → the binding component and theme; 1.4.11-non-text-contrast → the binding component and theme; 2.1.1-keyboard → the composing page (remainder only); 2.1.2-no-keyboard-trap → the binding component and composing page; 2.4.2-page-titled → the page; 2.4.3-focus-order → the composing page; 2.4.4-link-purpose → the binding component; 2.4.6-headings-and-labels → the binding component and caller content (remainder only); 2.4.7-focus-visible → the binding component and theme; 2.4.11-focus-not-obscured → the composing page; 2.5.2-pointer-cancellation → the binding component; 2.5.3-label-in-name → the binding component; 2.5.8-target-size → the binding component and theme; 3.1.1-language-of-page → the page; 3.2.2-on-input → the caller and composing page; 3.2.4-consistent-identification → the composing page; 3.3.1-error-identification → the binding component and composing page; 3.3.2-labels-or-instructions → the binding component and composing page; 4.1.2-name-role-value → the binding component (remainder only); 4.1.3-status-messages → the caller and the assistive-technology verification record, spec:AST-009; apg-interaction → the binding component's record (remainder only); forced-colors → the binding component and theme; reduced-motion → the binding component and theme; at-facing-strings → the binding component and caller content

Known failures (exact records, reconciled in both lanes)

Binding / state Expectation Exact failure User impact Authority / fix
ResizeHandle / bare-unbounded-in-container windowsplitter.separator.maximum the splitter exposes no aria-valuemax A screen-reader user on a pixel-only region inside a container with no maximum hears no maximum. component:Resizable AR1's recorded gap (measuring the container would add an observer to an all-pixel region — Performance and resources); closes only with a record decision.
ResizeHandle / bare-snapped windowsplitter.keys.arrows-move ArrowRight (grow) left aria-valuenow at 200, not 210 A keyboard user on a region with snap points presses an arrow and nothing happens: a 10 px step snaps back to its starting point. component:Resizable AR1 (arrows move the splitter); moving to the adjacent snap point is a component decision for its own spec-backed patch.
ResizeHandle / bare-documented-usage windowsplitter.separator.controls-pane the splitter carries no aria-controls A screen-reader user on a handle rendered the documented minimal way hears a separator with no named pane. component:Resizable AR1's recorded gap (the Handle names the pane it resizes with aria-controls only when its caller passes one; SideNav does); a component decision for its own spec-backed patch.

Shape

  • internal/a11y-spec/src/patterns/window-splitter.ts — WINDOW_SPLITTER_PATTERN, 9 expectations with WCAG and APG sources (APG Window Splitter wording verified against the published pattern on 2026-10-13); every other checklist dimension exempted to a named owner.
  • window-splitter.fixtures.ts — HTML splitter between two panes whose <script> implements the keyboard model; every expectation has a violating twin (WINDOW_SPLITTER_MUTATIONS).
  • window-splitter.jsdom.test.ts (36 cases) and window-splitter.chromium.spec.ts.
  • No harness change: Home/End/PageUp/PageDown are already on main.
  • packages/core/src/Resizable/__tests__/ResizeHandle.a11y.{states,renders,known-failures,test}.tsx and ResizeHandle.a11y.chromium.spec.ts — twelve states: bare horizontal, bare vertical (ArrowDown grows), reversed (ArrowLeft grows), RTL (ArrowLeft grows), collapsible, collapsible with minSize 20 below collapsedSize 50 (Enter reopens it since fix(ResizeHandle): Enter and double-click restore a collapsed pane to its previous size #7479), a pane that starts collapsed (defaultIsCollapsed; announces the minimum; the grow arrow opens it since fix(ResizeHandle): a grow arrow reopens a collapsed pane #7512, and the collapse-and-restore row, which assumes an open pane, does not apply), unbounded (window stand-in since fix(ResizeHandle): an unbounded region reports its measured basis as aria-valuemax #7481), unbounded pixel-only with a containerRef — the first useResizable example — which reports no maximum (exact known failure backed by the record's gap), snapped (snaps [100, 200, 300, 400]; a 10 px arrow step snaps back, recorded as an exact known failure on the arrows row), the documented minimal usage with no aria-controls passed (exact known failure on the pane-relationship row, backed by the record's gap), disabled. SideNav is excluded (sidenav-binding): it hides its handle while collapsed, so it binds separately with states shaped for that.- apps/storybook/stories/WindowSplitterA11y.stories.tsx — one no-visual story per state through renderResizeHandleState.
  • .github/workflows/ci.yml — "Run Window Splitter accessibility contract" step; scope decided through pr-scope-touches.sh from the base; runs when Resizable, the harness, the stories, or the contract change (SideNav is not watched: it is excluded from this binding).
  • README row and index export.

Source lines behind the binding facts

role="separator", aria-orientation = vertical for a horizontal layout (ResizeHandle.tsx L693–694), aria-valuemax from a configured maximum or the reported stand-in (window extent, or the container's content box while a percentage bound observes it; a pixel-only region in a container reports none), aria-valuetext "Collapsed" while collapsed (L698), tabIndex −1 and aria-disabled when disabled (L700), props spread accepts aria-controls (L730); keys: ArrowRight/Down +step·rtl·sign, ArrowLeft/Up the inverse (KEYBOARD_STEP 10 at L58, getRTLMultiplier L450; the shared arrow branch from L563 opens a collapsed pane on the grow arrow since #7512), Home to min, End only to a configured maximum (L606–623); Enter and double-click collapse and restore through the hook's own transitions (toggleCollapse L375; #7479 on main). The three known failures are bare-unbounded-in-container (no aria-valuemax for a pixel-only region in a container; the record's owned gap), bare-snapped (an arrow step snaps back; fix in flight) and bare-documented-usage (no aria-controls unless the caller passes one; the record's owned gap).

Ownership exclusions

RESIZE_HANDLE_EXCLUSIONS: SideNav binding (hides its handle while collapsed; binds separately); pointer drag model (pointer capture, foreign-pointer moves ignored, pointercancel/lost-capture ending, double-click collapse and restore, grab-zone geometry — proven by ResizeHandle.test.tsx's jsdom pointer suites; ResizeHandle has no Escape cancel and no Chromium pointer suite); F6 pane cycling (optional, not adopted).

Retained local tests (AST-021 FR6, FR14)

ResizeHandle.test.tsx keeps its role, value-property and keyboard assertions. Removal blocker: component:Resizable is draft and its AR1 verification row cites these titles (including the Enter-restore and aria-valuemax tests the merged fixes added); the duplicates come out with the record pass that makes the record current, once this binding is on main and cited instead.

Evidence

WINDOW_SPLITTER_PATTERN encodes the APG Window Splitter parts
component:Resizable AR1 adopts as one composite control: separator role and
name, position and minimum, maximum, orientation, aria-controls to the pane,
arrow moves, Enter collapse/restore, Home/End (advisory, APG-optional), and
an unavailable splitter keeping its position. Fixtures carry a script
implementing the model so the Chromium self-test proves every mutation; the
harness gains Home/End/PageUp/PageDown. The ResizeHandle binding has eight
states (seven bare, one SideNav); four exact known failures record the
shipped gaps the record names (no aria-valuemax when unbounded; Enter reopens
at the minimum, bare and SideNav; SideNav's handle has no aria-controls), each
fixed by its own patch. Stories through the shared renderer, CI step, README.
Test-only.
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 14, 2026 6:25am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 13, 2026
@astracat-bot

astracat-bot Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 14, 2026, 6:48 AM UTC

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.9KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

44 of 448 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 754,077
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,188
Chat Full AI Chat probe light 238,081
Chat Full AI Chat probe dark 237,048
Markdown Default probe light 159,625
Markdown Default probe dark 158,986
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
Chat Default neutral dark 33,205
Chat Default neutral light 32,876
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232
ProgressBar With Target Mark probe dark 7,895
ProgressBar With Target Mark probe light 7,895
TableRowExpansion Detail Panel neutral dark 5,150
TableRowExpansion Detail Panel neutral light 4,068

and 24 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

…eNav binds separately

In the first real-browser run SideNav's separator did not resolve within the
run's budget while every bare state passed; the SideNav state and its two
ledger rows move out to their own binding, recorded as an explicit
exclusion. Binding spec titles name ResizeHandle.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the new Window Splitter accessibility step fails on this head because the sidenav-resizable state times out in Chromium. SideNav unmounts its resize handle while collapsed (SideNav.tsx L484). After the first Enter, the contract's aria-valuetext read therefore waits on a separator that no longer exists, and the recorded failure Enter (restore) left aria-valuenow at 180, not 260 never happens. Please make the Enter expectation fail fast with an exact message when the splitter disappears, record that failure for the SideNav state, and get the step green.

  • Name a real owner and verification method for the four exemptions that use owner: 'not applicable' / verifiedBy: 'none needed' (AST-020 FR5).
  • Rename the per-state Chromium tests from TreeList [...] to ResizeHandle [...].
  • Remove or rewrite the ResizeHandle.test.tsx assertions the binding now owns, or name the removal blocker (AST-021 FR6, FR14).
  • Cover or explain a collapsible pane whose minSize is below collapsedSize, where Enter cannot reopen it (AST-021 FR4).
  • Drop the unused PageUp/PageDown harness keys.

[Automated review]

run: async ({harness, subject, facts}) => {
await focusOrFail(subject, 'Enter');
await harness.press('Enter');
const text = await subject.attribute('aria-valuetext');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the first Enter removes the separator, this read waits for an element that never comes back. SideNav unmounts its handle while collapsed (SideNav.tsx L484), so sidenav-resizable hits the 60 s test timeout and the Window Splitter step fails. Check that the splitter is still present (a non-waiting count or presence check) before reading it. Then throw an exact message, for example Enter removed the splitter, so a second Enter cannot restore the pane, that the binding can record.

binding: 'ResizeHandle',
state: 'sidenav-resizable',
evidenceLayer: 'real-browser',
failureEquals: 'Enter (restore) left aria-valuenow at 180, not 260',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This failure is never produced. In Chromium the first Enter collapses SideNav and unmounts the handle, so there is no second Enter and no 180 to read. Once the contract fails fast, record the exact message it gives and the real impact: a keyboard user who collapses the sidebar from the handle has nothing left to press Enter on. AST-021 FR8 asks for the observed failure.

"Where the splitter sits between its panes, and the panes' reading order, is composition.",
},
'1.3.5-identify-input-purpose': {
owner: 'not applicable',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

owner: 'not applicable' with verifiedBy: 'none needed' is the generic escape hatch AST-020 FR5 rules out; the same applies at L468, L532 and L537. An exemption must name the actual owner or verification method. Other contracts do this for these rows; for example, link's 1.3.5 row names Form controls / Text-input contract bindings.

});

for (const state of RESIZE_HANDLE_BINDING_STATES) {
test(`TreeList [${state.id}] — ${state.summary}`, async ({page}) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These titles report ResizeHandle states as TreeList [...], in CI output and in the uploaded evidence report. The other bindings that use this format name their own component (for example Link [${state.id}]), so this should read ResizeHandle [${state.id}].

Comment thread internal/a11y-spec/src/harness.ts Outdated
Comment on lines +148 to +149
| 'PageUp'
| 'PageDown';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No expectation in this pull request presses PageUp or PageDown, and the Window Splitter pattern has no Page keys. Please leave these, and their harness/chromium.ts entries, to the Slider and Tree View contracts that use them.

rtl: true,
},
{
id: 'bare-collapsible',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every collapsible state here has minSize at or above collapsedSize. With a smaller minSize, Enter's restore moves by minSizePx from 0 (ResizeHandle.tsx L566–L571, useResizable.ts L974). That stays under the threshold (useResizable.ts L980–L986), so the pane never reopens. AST-021 FR4 asks the binding to cover that state, with its exact failure, or to record why it cannot change the outcome.

…contract

# Conflicts:
#	.github/workflows/ci.yml
#	internal/a11y-spec/README.md

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the Window Splitter contract and its seven ResizeHandle states pass in jsdom and Chromium on this head, and both recorded known failures reproduce exactly, but a few items still conflict with the accessibility spec-test records. Please address these before merge:

  • Name a real owner or verification method for the 1.3.5, 2.4.4, 3.3.1 and 3.3.2 exemptions instead of not applicable / none needed (AST-020 FR5).
  • Bind a collapsible state whose minSize is below collapsedSize, where Enter never reopens the pane, with its exact known failure, or record why it is omitted (AST-021 FR4).
  • Remove or rewrite the ResizeHandle.test.tsx assertions the binding now owns, or name the removal blocker (AST-021 FR6, FR14).
  • Update the description to this head: seven states, two known failures, SideNav excluded, and no harness change (AST-020 FR13, AST-021 FR14).
  • Correct the sidenav-binding and pointer-drag-model exclusion text, since SideNav hides its handle while collapsed and ResizeHandle has no Chromium pointer suite.

[Automated review]

"Where the splitter sits between its panes, and the panes' reading order, is composition.",
},
'1.3.5-identify-input-purpose': {
owner: 'not applicable',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still applies on this head: owner: 'not applicable' with verifiedBy: 'none needed' is the escape hatch AST-020 FR5 rules out ("An exemption MUST name the actual owner or verification method"). The same rows sit at L468, L532 and L537. Name the real owner and verification method, as link.ts does for 1.3.5 (Form controls / Text-input contract bindings).

rtl: true,
},
{
id: 'bare-collapsible',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only collapsible state, and it uses minSize 100. With minSize below collapsedSize (default 40), Enter's restore moves by minSizePx from 0 (ResizeHandle.tsx L564–L573, useResizable.ts L974) and stays under the threshold (useResizable.ts L980–L986), so the pane never reopens. AST-021 FR4 asks for that state with its exact known failure, or a recorded reason for omitting it.

owner:
'SideNav.test.tsx until SideNav binds this contract in its own change',
reason:
"SideNav renders ResizeHandle in overlay position with its own collapse coupling and translated label. Its separator did not resolve within the real-browser run's budget in the first binding attempt, so SideNav is bound separately once that is understood; its known gaps (no aria-controls; Enter reopening at the minimum) stay recorded in component:Resizable AR1 and are fixed by their own patches.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cause is known: SideNav hides its handle while collapsed (SideNav.tsx L484, pinned by SideNav.test.tsx "does not render drag handle when collapsed"). The first Enter therefore removes the focused separator, so there is no second Enter that could reopen at the minimum, and AR1 does not record that gap. Please state the observed cause and gap so the SideNav binding starts from the right facts.

{
id: 'pointer-drag-model',
owner:
'ResizeHandle.test.tsx pointer suites and the Chromium pointer evidence',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ResizeHandle has no Chromium pointer suite: its only browser spec is this keyboard binding, and the Resizable stories define no play functions. Point this owner at evidence that exists (the ResizeHandle.test.tsx pointer suites) or drop the phrase.

…mum collapsible state records the never-reopens gap exactly; exclusion texts match SideNav and the pointer suites

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the Window Splitter contract and its eight ResizeHandle states pass in jsdom and real Chromium, and all three recorded known failures reproduce exactly, but a few items need fixing before merge.

  • Bind a state that starts collapsed, or add an explicit exclusion for it, because once a pane is collapsed ArrowRight never moves the handle and the required arrows row has no record of that (AST-021 FR4).
  • Correct the pointer-drag-model exclusion and the 2.5.2 exemption, since ResizeHandle has no Escape cancel and no double-click test.
  • Update the description to this head: the four exemptions now name owners, SideNav has no known failure here, the CI step does not watch SideNav, and there is no Menu Button contract.
  • Resolve the ci.yml conflict with main (keep both the TreeList row-naming step and the Window Splitter step) so CI can run on the branch.

[Automated review]

storyId: story('bare-collapsible'),
component: 'ResizeHandle',
label: 'Resize details pane',
facts: facts({collapsible: true}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every state here starts expanded, but a collapsed pane changes the arrows outcome: after Enter collapses this story's pane, ArrowRight never moves the handle (one press or five), because useResizable restarts each keypress from 0 while collapsed (useResizable.ts L974) and returns early while the result stays under collapsedSize (L980–L987). AST-021 FR4 asks the binding to cover a state that can change the shared outcome. Please bind a state that starts collapsed with its exact known failure (the facts need a collapsed flag so the Enter row restores first), or add an exclusion that names its owner and this gap.

id: 'pointer-drag-model',
owner: 'ResizeHandle.test.tsx pointer suites',
reason:
"Dragging, Escape cancelling an in-flight drag, double-click collapse, and the grab-zone geometry are pointer behavior outside the keyboard-and-semantics pattern; the component's own jsdom pointer suites prove them (ResizeHandle has no Chromium pointer suite).",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The jsdom pointer suites do not prove two of these: ResizeHandle has no Escape handling (no Escape case in ResizeHandle.tsx or useResizable.ts), and ResizeHandle.test.tsx has no double-click test. Please drop Escape cancel, and either add a double-click collapse test or say that behavior is untested.

'2.5.2-pointer-cancellation': {
owner: 'the binding component',
verifiedBy:
"the component's pointer drag, cancel and double-click tests",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ResizeHandle, the only binding so far, there are drag and pointer-cancel tests but no double-click test, so this verification method names evidence that does not exist yet. Please name what exists or add the test.

…pt); 2.5.2 and the pointer exclusion say what ResizeHandle has (no Escape cancel; double-click tests); explicit starts-collapsed exclusion
…7479), so their rows go; the unbounded aria-valuemax row stays until #7481 lands

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the Window Splitter contract and its eight ResizeHandle states pass in jsdom and real Chromium, and the one recorded known failure reproduces exactly, but two text fixes remain before merge.

  • Correct the starts-collapsed exclusion in ResizeHandle.a11y.states.ts: Shift+ArrowRight, Home and End can reopen a pane that starts collapsed (plain arrow steps below the collapse threshold do not), and the collapse tests it cites all start expanded (AST-021 FR4).
  • Update the description to match the code: there is no SideNav known failure, the source-lines section predates the Enter restore fix, and no Menu Button or Tree View contract exists (AST-020 FR13).

Please also run Prettier on internal/a11y-spec/README.md, whose new row breaks the table alignment.

[Automated review]

owner:
'ResizeHandle.test.tsx collapse suites until a collapsed-start state joins this binding',
reason:
"A pane that is already collapsed takes no arrow growth: ArrowRight (or the axis's grow key) leaves a collapsed handle where it is, and only Enter or a double-click reopens it. The required arrows row assumes an open pane, so a state that starts collapsed is not bound here; its keyboard behaviour is proven by the component's collapse tests and would need an arrows row conditioned on the collapsed state to bind.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says only Enter or a double-click reopens a collapsed pane, but that holds only for plain grow-arrow steps below the collapse threshold. At the default 40px threshold, Shift+ArrowRight (the 50px step, ResizeHandle.tsx L55) and End reopen a pane that starts collapsed, and so does Home whenever the minimum is at or above the threshold, because each keypress starts from 0 while collapsed (useResizable.ts L974, L988–L991); Enter restores the previous size. The collapse tests in ResizeHandle.test.tsx also all start expanded, so they do not prove a collapsed start. Please describe the observed behaviour and narrow the proof claim, or bind a collapsed-start state with its exact results (AST-021 FR4).

| `breadcrumb` | WCAG 2.2 semantics; [APG Breadcrumb](https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/) as context | Breadcrumbs landmarks, list trails, current-page state, and separators |
| `landmark` | WCAG 2.2 semantics; [APG Landmark Regions](https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/) as context | LayoutHeader, LayoutContent, LayoutFooter, and LayoutPanel caller-declared landmarks |
| `slider` | [APG Slider](https://www.w3.org/WAI/ARIA/apg/patterns/slider/) role, values, name, orientation and keys | Slider thumbs: role, name, now/min/max, value text, orientation, arrows (RTL-mirrored), Page, Home/End, disabled keeps value |
| `windowsplitter` | [APG Window Splitter](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) role, values, name, relationship and keys | ResizeHandle: separator role/name, now/min/max, orientation, aria-controls to the pane, arrows, Enter collapse/restore, Home/End, disabled keeps position |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This row is wider than the table, so Prettier re-aligns the whole table (the file was clean before this change). Running Prettier on this README fixes it.

…ion says which keys reopen a collapsed pane and that the component's keyboard tests start expanded; README table aligned

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the Window Splitter contract and its eight ResizeHandle states pass in jsdom and real Chromium, with the one recorded known failure reproducing exactly, but two corrections remain before merge.

  • Bind a collapsed pane instead of excluding it: the starts-collapsed exclusion itself says a plain arrow leaves such a pane unmoved, and AST-021 FR4 lets a binding omit only states that cannot change the shared outcome (this supersedes the earlier suggestion that an explicit exclusion would be enough).
  • Update the description to match the code: the ledger has no SideNav row and the bare renderer supplies aria-controls itself, nothing in the contract or binding checks that a disabled handle leaves the Tab order, the exclusions paragraph still describes the collapsed-start keys as before, and #7479 has already merged.

[Automated review]

owner:
'ResizeHandle.test.tsx keyboard suites until a collapsed-start state joins this binding',
reason:
"A pane that starts collapsed answers the keyboard differently: a plain arrow step stays below the collapse threshold and leaves the pane collapsed, while Shift+Arrow (the large step), Home, End, Enter and a double-click reopen it. The required arrows row assumes an open pane, so a collapsed-start state is not bound here; it would need an arrows row conditioned on the collapsed state. The component's keyboard tests start expanded, so this remains an uncovered state rather than a proven one.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reason shows why the state cannot be left out: AST-021 FR4 says a binding “MUST cover every component state that can change the adopted pattern outcome” and that the inventory records why omitted states cannot change it, yet here a plain arrow leaves a collapsed pane unmoved (ArrowRight once or five times keeps aria-valuenow at the minimum with aria-valuetext “Collapsed”, because useResizable.ts L974 starts the gesture from 0 and L980–L987 keep the pane collapsed). Please bind a collapsed state with its exact results: a collapsed fact lets the Enter row start from the collapsed end of its round trip, and the arrows result can be recorded as an exact known failure with its AST-021 FR8 classification. One accuracy point while here: Home reopens the pane only when minSize is at or above collapsedSize; with bare-small-min's 20 under 50, Home leaves it collapsed.

},
{
id: 'bare-disabled',
summary: 'a disabled ResizeHandle: out of the Tab order and unmoving',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing in the contract or this binding checks that the disabled handle leaves the Tab order: the unavailable row focuses it programmatically (window-splitter.ts L378) and checks only aria-disabled and that keys do not move it. Tab-order removal is proven by ResizeHandle.test.tsx L337, so either drop “out of the Tab order” from this summary (it is also the Chromium test title) and from the description, or add an assertion for it in the binding.

…s its exact known failure (a plain arrow does not reopen it); the collapse-and-restore row assumes an open pane
… fixed on main (#7481), so its row goes; one known failure remains (a plain arrow on a collapsed pane)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the Window Splitter contract and its nine ResizeHandle states pass in jsdom and real Chromium, and the one recorded known failure (a plain arrow on a pane that starts collapsed) reproduces exactly, but the contract's position-and-minimum row does not notice a missing aria-valuemin.

  • Number(null) is 0, so a separator without aria-valuemin passes whenever the expected minimum is 0 and otherwise fails with a misleading 200/0 detail; read it the way valueNow() does and add a violating-no-valuemin twin, as the slider contract has.
  • bare-unbounded still declares valueMax: null, so the advisory Home/End row reports not applicable even though the handle now exposes aria-valuemax and End does not move it; let that row report what End does.
  • Please bring the description up to date: it still mentions a SideNav known failure, lists #7479, #7481 and #7473 as in flight, and cites ResizeHandle.tsx line numbers that have moved.

[Automated review]

enforcement: 'required',
run: async ({subject, facts}) => {
const now = await valueNow(subject);
const min = Number(await subject.attribute('aria-valuemin'));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number(null) is 0, so a missing aria-valuemin reads as 0 here and the Number.isFinite guard below never fires. For a state whose expected minimum is 0 (APG's typical value, or minSize: 0 on a ResizeHandle region) the row passes with no aria-valuemin at all; with a non-zero minimum it fails as now/min 200/0 instead of saying the attribute is absent. Reading it the way valueNow() does (absent → fail) and adding a violating-no-valuemin entry to WINDOW_SPLITTER_MUTATIONS, as the slider contract has, would close this (AST-020 FR11).

storyId: story('bare-unbounded'),
component: 'ResizeHandle',
label: 'Resize details pane',
facts: facts({valueMax: null}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since #7481 this handle exposes a measured aria-valuemax (the required maximum row passes for this state), so with valueMax: null the advisory Home/End row reports not applicable (“applies when the splitter can be moved and exposes a maximum”) while End leaves the value at 200, because ResizeHandle.tsx L587–L590 skips an unconfigured maximum. Letting that row run against the exposed maximum, or recording End's no-op on an unbounded region in the inventory, would show the gap instead of hiding it.

…min (violating-no-valuemin twin); the Home/End row runs for an unbounded handle and reports what End does; merge main
cixzhang added a commit that referenced this pull request Oct 14, 2026
…trols fixes (#7510)

## Record change

`component:Resizable` (draft) AR1 and its decision entry catch up with the three fixes now on `main` — #7479 (Enter and double-click restore the previous size, and reopen below the collapse threshold), #7481 (an unbounded Handle reports a measured stand-in as `aria-valuemax`), #7473 (SideNav passes `aria-controls`) — so record and code say the same thing.

- Deleted: the two Enter gaps (reopen at the minimum; no reopen below `collapsedSize`).
- Added before the gaps: "An unbounded Handle reports a measured stand-in as `aria-valuemax`: the window's extent along its axis when no container is supplied, or its container's content box while a percentage bound observes it, never below its current size or, while collapsed, its minimum."
- Gaps now: "the Handle names the pane it resizes with `aria-controls` only when its caller passes one (SideNav does); an unbounded Handle in a container that no percentage bound observes carries no `aria-valuemax`, because measuring that container would add an observer to a region whose bounds are all in pixels (Performance and resources); End does not move an unbounded Handle; and a plain arrow cannot reopen a collapsed pane whose `collapsedSize` (40 px by default) is larger than one 10 px step." The last gap is the Window Splitter binding's `bare-start-collapsed` known failure (#7485); its fix follows this record.
- DEC: the gap list matches.
- AR1 verification row: adds the fix tests, all verified on `main` — `ResizeHandle.test.tsx` "restores the previous size, not the minimum, when Enter reopens a collapsed pane", "reopens on Enter even when the minimum size sits below the collapse threshold", "reports the window basis as aria-valuemax when no maximum is configured; End leaves an unbounded region alone", "reports the container basis as aria-valuemax while a percentage bound already observes it", "never reports aria-valuemax below aria-valuemin while collapsed in a small window", "reports no aria-valuemax for an unbounded pixel-only region in a container, which stays unobserved"; `SideNav.test.tsx` "names the nav it resizes with aria-controls (APG window splitter)"; `aria-controls` leaves the pending-contract clause.

## Full pass against `main`

Every AR1 claim re-read against `ResizeHandle.tsx`/`useResizable.ts` on `main`: role/name/orientation/value properties, `aria-valuetext` while collapsed, `aria-disabled`, arrow directions and RTL mirroring, Shift step, Home/End, Enter collapse/restore (now true), the stand-in maximum (true per #7481), and each remaining gap (true: `aria-controls` is caller-supplied; pixel-only-in-container reports none; End uses only a configured maximum; a plain arrow on a collapsed pane stays at the minimum — reproduced in jsdom). Existing verification titles re-checked. Frontmatter, FR1–FR6, ORD and OQ1 unchanged.

## Writing rubric results

R1 narration: none; AR1 and the decision stay present tense (the two fixed gaps are deleted, not rephrased as history).
R2 research: none in the record.
R3 evidence: the verification cell cites test titles and the pending contract, not pull requests.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: unchanged — OQ1 (Handle `direction` target-state reflection) keeps its question.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the missing-aria-valuemin fix and its new violating fixture work, and the contract with its nine ResizeHandle states passes in jsdom and real Chromium with the one recorded known failure reproducing exactly, but two contract gaps remain.

  • A region that passes containerRef with pixel-only bounds and no maximum (the first useResizable example in the docs) still renders no aria-valuemax and fails the required maximum row, so please bind that state with its exact known failure or record an owned exclusion, and correct the description's #7481 statement (AST-021 FR4).
  • Because the Home/End row presses Home first, its no-maximum branch should compare End with the aria-valuemax the separator exposes rather than facts.valueNow, since today it reports End left aria-valuenow at 100, not 200, which neither today's End nor one that reaches the maximum would satisfy.
  • The description still names a SideNav known failure that the ledger does not hold (SideNav now passes aria-controls), and its self-test and binding case counts are now 35 and 13.

[Automated review]

// Without a configured maximum End leaves the splitter where it is
// (the binding's record names that as a gap), so the row reports what
// End does rather than skipping the state.
await expectValue(subject, facts.valueMax ?? facts.valueNow, 'End');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Home has already moved the splitter to facts.valueMin (L365–L366), so with no configured maximum this compares End's result with the starting size. For bare-unbounded in Chromium the row reports End left aria-valuenow at 100, not 200, while End leaves the value at 100 and the separator announces aria-valuemax 1280; if End later reached the announced maximum the row would still fail. Comparing with the exposed maximum reports the real gap now and passes once End is fixed:

const end = facts.valueMax ?? (await numericAttribute(subject, 'aria-valuemax'));
await expectValue(subject, end, 'End');

A conforming fixture with no configured maximum would give this branch the positive proof AST-020 FR11 asks for.

Comment on lines +120 to +126
id: 'bare-unbounded',
summary: 'a bare ResizeHandle whose region sets no maximum',
storyId: story('bare-unbounded'),
component: 'ResizeHandle',
label: 'Resize details pane',
facts: facts({valueMax: null}),
maxSize: null,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This state renders without containerRef, so the hook reports the window as a stand-in maximum and the required maximum row passes. A region that passes containerRef with pixel-only bounds (the first useResizable example in Resizable.doc.mjs) gets no stand-in (useResizable.ts L1049–L1069, pinned by ResizeHandle.test.tsx L302–L320), and the contract then fails windowsplitter.separator.maximum with the splitter exposes no aria-valuemax. AST-021 FR4 asks the binding to cover that state with its exact known failure, or to record an owned reason for leaving it out.

…xact known failure; the End oracle compares against the exposed aria-valuemax; merge main
…contract

# Conflicts:
#	.github/workflows/ci.yml
#	internal/a11y-spec/README.md

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the two earlier items are fixed (the container no-maximum state is bound with its exact known failure, and End is compared with the announced maximum), and the contract with its ten ResizeHandle states passes in jsdom and real Chromium, but one more state, one value check and two description lines need attention.

  • Bind a region that sets snaps (for example [100, 200, 300, 400]), where ArrowRight, Shift+ArrowRight and ArrowLeft leave the splitter at 200, with its exact known failure on the arrows row (AST-021 FR4).
  • Make the maximum row fail when aria-valuenow exceeds aria-valuemax, as the slider contract does, and add a violating fixture, since an unbounded splitter announcing 200 of 100–150 passes today while the 3.3.1 exemption says the value rows prove the value stays in range (AST-020 FR5).
  • In the description, drop “SideNav's missing wiring is the known failure” (the ledger has no SideNav record and SideNav passes aria-controls) and give the jsdom self-test as 35 cases.

[Automated review]

facts: facts({operable: false}),
disabled: true,
},
] as const satisfies ReadonlyArray<ResizeHandleBindingState>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No state renders a region that sets snaps, a documented useResizable option. With snaps: [100, 200, 300, 400] the handle stays at 200 after ArrowRight, Shift+ArrowRight and ArrowLeft, because the hook commits the nearest snap point, so the required arrows row would fail there. AST-021 FR4 asks the binding to cover that state; a snapping state with its exact known failure (for example “ArrowRight (grow) left aria-valuenow at 200, not 210”) would record it.

Comment on lines +237 to +239
if (max < facts.valueMin) {
throw new Error('aria-valuemax lies below aria-valuemin');
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With no configured maximum, nothing here ties the exposed maximum to the value: a separator announcing 200 of 100–150 passes both value rows, while the 3.3.1 exemption says these rows prove aria-valuenow stays within its bounds. The slider contract checks both ends; something like this would close it, together with a violating fixture whose exposed maximum sits below its value:

const now = await valueNow(subject);
if (now > max) {
  throw new Error('aria-valuenow lies above aria-valuemax');
}

…; the maximum row fails when aria-valuenow exceeds aria-valuemax (violating-now-above-max)
cixzhang added a commit that referenced this pull request Oct 14, 2026
## What changes for users

A keyboard user on a collapsed `ResizeHandle` pane presses the arrow that grows it and the pane opens one step above its minimum — the value the separator announced while collapsed (100 → 110), or at its `collapsedSize` when that is larger — where one bare 10 px step used to stay below the 40 px collapse threshold and change nothing (APG Window Splitter: the arrow moves the separator from where it is). The arrow that shrinks it leaves it collapsed. Enter and double-click still restore the previous size.

## Authority

Path (a): `spec:AST-020` FR15 (current) plus the owner's 2026-10-13 adopt-and-patch approval for ResizeHandle's APG Window Splitter adoption; the maintainers' ruling (a) on 2026-10-13: the grow arrow opens a collapsed pane one step above its minimum regardless of `collapsedSize`; the shrink arrow stays a no-op; Enter keeps restore-previous-size. `component:Resizable` AR1 recorded the gap in #7510.

## Shape

- `ResizeHandle.tsx`: the four arrow keys share one branch; on a collapsed pane only the grow direction (after `isReversed` and RTL) acts: `_onResizeStart(); _onResizeMove(Math.max(_minSizePx + step, _collapsedSize)); _onResizeEnd()`, which uncollapses the region and lands at min + step (or the threshold when that is larger) for hook-built and hand-built regions alike. Open panes step as before.
- Tests (red on `main`): "a grow arrow opens a collapsed pane one step above its minimum; the shrink arrow leaves it collapsed", "a grow arrow opens a collapsed pane at its collapsedSize when the minimum sits below it", "a grow arrow opens a collapsed pane in the reversed layout and under RTL too", "in a reversed layout, ArrowLeft opens a collapsed pane and ArrowRight leaves it collapsed", "under RTL, ArrowLeft opens a collapsed pane and ArrowRight leaves it collapsed", "a grow arrow opens a hand-built collapsed region one step above its minimum". Resizable + SideNav: 367/367.
- Changeset (patch).

## Record

Per the fix-PR rule, `component:Resizable` AR1 states the behaviour ("…and the arrow that grows a collapsed pane opens it one step above its minimum, or at its `collapsedSize` when that is larger (the shrinking arrow leaves it collapsed)"), the gap sentence and the decision drop "a plain arrow cannot reopen a collapsed pane…", the pending-contract clause drops the collapsed-pane arrow gap, and the AR1 verification row cites the three new titles.

## Order

Merges after #7485 and empties its `bare-start-collapsed` known-failure row (if #7485 merges first, that row is removed here instead).

## Writing rubric results

R1 narration: none; AR1 and the decision stay present tense (the gap is deleted, not rephrased as history).
R2 research: none in the record.
R3 evidence: the verification cell cites test titles, not this pull request.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: unchanged.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the previous items are fixed, and the contract with its eleven ResizeHandle states passes in jsdom and real Chromium, but the binding still hides one shipped gap. Every state's renderer passes aria-controls, while the documented usage (<ResizeHandle direction="horizontal" resizable={region.props} />) passes none and fails the required windowsplitter.separator.controls-pane row with the splitter carries no aria-controls; please bind that configuration with its exact known failure, or record an explicit ownership exclusion if the caller owns the relationship, and qualify “names the pane it resizes” in the description (AST-021 FR4). The description's jsdom case count (36, not 34) and its ResizeHandle.tsx line references (moved by #7512) are also stale, and the README row could mark Home/End as advisory.

[Automated review]

direction={direction}
isReversed={state.isReversed}
isDisabled={state.disabled}
aria-controls={BARE_PANE_ID}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every state renders the handle with this caller-supplied aria-controls, but ResizeHandle never sets it on its own (it arrives only through {...props}), and the documented usage in Resizable.doc.mjs (<ResizeHandle direction="horizontal" resizable={region.props} />) passes none. Run through the contract, that configuration fails the required windowsplitter.separator.controls-pane row with the splitter carries no aria-controls, and no state, record or exclusion shows it. AST-021 FR4 asks the binding to cover a state that changes the outcome, or to record why it is left out: an opt-out here (for example a controlsPane: false state flag) plus a bare-no-controls state, story and exact dom-layer known failure would do it, or an explicit ownership exclusion if the caller owns the pane relationship.

…ontrols) with its exact known failure, backed by the record's aria-controls gap; README marks Home/End advisory

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommended for approval: the Window Splitter contract and its twelve ResizeHandle states pass in jsdom and real Chromium, the three recorded gaps (now including the documented usage without aria-controls) reconcile exactly with no unexpected pass, and CI is green. Nothing more is required; as an optional tidy-up, the README patterns row could mark Home/End as advisory, as the tree line already does. Separately from this pull request, the shared completeness checklist has no WCAG 2.2 2.5.7 (Dragging Movements) dimension, which may deserve a follow-up for drag-operated controls such as this handle.

[Automated review]

| `carousel` | [APG Carousel](https://www.w3.org/WAI/ARIA/apg/patterns/carousel/) and WCAG 2.2 semantics | Carousel container, slides, scroll area, and stable navigation-control focus |
| `alertdialog` | [APG Alert Dialog](https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/) role, references, modality, focus, dismissal | AlertDialog: alertdialog role and name, aria-describedby to the message, modal, Cancel first (advisory), Escape closes, click beside inert (advisory); modal mechanics stay with the modal-dialog contract through Dialog |
| `grid` | [APG Grid](https://www.w3.org/WAI/ARIA/apg/patterns/grid/) role, structure, name, selection and data-grid keys | Calendar month grids: grid role/name, row and gridcell/columnheader structure, one Tab stop, aria-selected/aria-multiselectable, arrows in reading order, Home/End, Enter selects (advisory) |
| `windowsplitter` | [APG Window Splitter](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) role, values, name, relationship and keys | ResizeHandle: separator role/name, now/min/max, orientation, aria-controls to the pane, arrows, Enter collapse/restore, Home/End, disabled keeps position |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the tree line above and the accordion, alertdialog and grid rows mark their advisory parts, but this row lists Home/End without it. Home/End (advisory) would match the contract's enforcement.

@cixzhang
cixzhang merged commit 664eae9 into main Oct 14, 2026
56 checks passed
cixzhang added a commit that referenced this pull request Oct 14, 2026
## What changes for users

A keyboard user on a `ResizeHandle` whose region sets snap points presses an arrow and the pane moves to the adjacent snap point in that direction (Shift moves two), staying within the bounds. A 10 px step used to snap straight back to the point it started on, so the arrows did nothing on a snapped region (APG Window Splitter: the arrows move the separator). Direction follows `isReversed` and the reading direction as before; pointer drags, Home, End and Enter are unchanged. With snap points, a shrink arrow at the lowest point no longer collapses a collapsible pane (it has no lower point to move to); Enter, double-click and dragging still collapse it.

## Authority

Path (a): `spec:AST-020` FR15 (current) plus the owner's 2026-10-13 adopt-and-patch approval for ResizeHandle's APG Window Splitter adoption; the maintainers' ruling (a) of 2026-10-13: with snap points set, an arrow moves to the adjacent snap point in its direction, Shift two, clamped to bounds.

## Shape

- `ResizeHandle.tsx`: on an open region with `_snaps`, the arrow branch resolves the target through `adjacentSnapPoint(resizable, direction, count)` — the snap points clamped into the bounds (a point beyond `minSize` or `maxSize` counts as that bound), deduplicated and sorted, ahead of the current size, the `count`-th one or the last available — and moves by `target − size`. Regions without snap points step as before.
- Tests (red on `main`): "with snap points, an arrow moves to the adjacent point in its direction and Shift moves two, clamped to the ends", "with snap points past the bounds, a point beyond maxSize or minSize counts as that bound", "with snap points, the arrows follow the reversed layout and the reading direction", "with snap points in a reversed layout, ArrowLeft moves to the next point and ArrowRight to the previous", "with snap points, the grow arrow opens a collapsed pane at the snap point nearest one step above its minimum". Resizable + SideNav: 372/372.
- Changeset (patch).

## Record

Per the fix-PR rule, `component:Resizable` AR1 gains "with snap points set, an arrow moves to the adjacent snap point, a point beyond `minSize` or `maxSize` counting as that bound (Shift, two);", its collapsed-pane sentence adds "(with snap points, at the snap point nearest that size; …)", and the AR1 verification row cites the five new titles. No gap entry existed for this case; the Window Splitter binding's `bare-snapped` known failure is the executable record of it.

## Order

Merges after #7485 and empties its `bare-snapped` known-failure row (if #7485 merges first, that row is removed here instead).

## Writing rubric results

R1 narration: none; AR1 stays present tense.
R2 research: none in the record.
R3 evidence: the verification cell cites test titles, not this pull request.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: unchanged.
@github-actions
github-actions Bot deleted the a11y-window-splitter-contract branch October 15, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — a295739f Deployed Oct 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant