Skip to content

fix(core): a field keeps 10 px above a keyboard that resizes the page - #10462

Draft
vjeux wants to merge 46 commits into
meta:mainfrom
vjeux:c09/resizes-content-clearance
Draft

vjeux wants to merge 46 commits into
meta:mainfrom
vjeux:c09/resizes-content-clearance

Conversation

@vjeux

@vjeux vjeux commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #9777 → #10462

This branch contains #9777's head 929b3a5. This PR's change: vjeux/astryx@929b3a5...b18489a

User impact

In Chrome on Android, an app can set interactive-widget=resizes-content. Then a focused field in a page, a scrolling area or a fully expanded Tall BottomSheet ends on the keyboard's top, not 10 px clear.

Problem and solution fit

The layout viewport shrinks with the visual viewport, so the keyboard height reads 0: neither reveal runs.

The keyboard module measures that room per report, while a field has focus, where the viewport meta sets resizes-content. The room is how far the root's box falls short of its height when a field took focus with no keyboard up. It keeps that height per width, so a turn and back keeps the room. Chrome keeps that box at its toolbar-shown size, so a returning toolbar adds none. On a change, the nearest scroller places a covered field 10 px above the new bottom in the report's frame. Nothing rides. Once the room is gone, the reveal's scroll goes back (FR9's close); a turn while the keyboard shows puts nothing back. The room counts as a show for FR9's touch hold.

Expected behavior and authority

spec:AST-099 FR8 carries the spec owners' sentence. A field the resize leaves covered or under 10 CSS px clear is revealed by its nearest scroller to sit exactly 10 px clear (FR9). No scroller moves a field already clear. FR9's close adds that a width change with the keyboard up leaves the page where that change put it. Three new rows verify these. Gap 14 records an app's docked bottom bar; Gap 15, an unmeasured width, where the room reads 0.

Smallest restoration

  • One shared measurement, getResizedRoom, for both reveals and the scroll back.
  • The sheet's 48 px overlay clearance is unchanged.
  • No API or prop change.

Evidence

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

  • f11ec1a measures the room against the root's box from when a text-entry control took focus with no keyboard up. On Android split screen, Back with the field still focused then reads no room, so FR9's close scrolls the page back. Its two split-screen cases, under resizes-content and the default viewport, fail on e1c930b's code.
  • 707b63b registers the keyboard store's shared key as version 3, as spec:AST-110 FR3 requires. The room's fields change the store's shape. A two-copy case puts an earlier copy's store under version 1. The package keeps its own store and reads its own room. On version 1 it throws reading the room's base.
  • 32a6c71 merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head a539222, which takes version 2 for the hide's touch count. The one conflict, that version line, keeps 3 with one comment for both fields. Its own lines equal 707b63b's against bfb1a32, apart from that comment.
  • 03eb876 keeps the room's base when focus comes from another text-entry control, including Core's own focus takeover. A plain input that opened the keyboard no longer resets it. The room now counts only where the page's last viewport meta sets interactive-widget=resizes-content. Its three new cases fail on 32a6c71's code.
  • At 03eb876: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 errors, knowledge records, and the shared-identity and touch-bundle checks pass (18/18). Keyboard, Layer, BottomSheet, Text, Tooltip, field and Chat units: 2,775. Nine interaction specs pass in Chromium (75) and in WebKit's CI container (58, 17 skipped). pnpm review:pre has no findings, and the merge into main is clean.
  • 5b336c9 merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head 2ed29e9, which merges main a4595ef. The one conflict, the version comment, keeps this change's wording. Its own lines equal 03eb876's against a539222.
  • c6bb612 merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head edced5f, which merges main 9b5ad42. Its own lines equal 5b336c9's.
  • 04c7951 merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head a99b97f, which merges main 36f68b0. Its own lines equal c6bb612's.
  • f6414e2 merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head babd93d, which merges main 1addd72. Its own lines equal 04c7951's.
  • 517ac29 merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head 929b3a5, which merges main 4800d99. Its own lines equal 04c7951's.
  • b18489a changes only BottomSheetResizesContent.interaction.browser.spec.ts: the already-clear case sizes its keyboard from where the first field rests.
  • History: main since 9b5ad42 changes BottomSheet/BottomSheet.test.tsx (fix(BottomSheet): keep snap points and the reentry in state #10873), which this change also edits. It also changes utils/clickGuard.ts (fix(layer): a release does not dismiss the layer it opened #11258) and utils/sharedResizeObserver.ts (feat(Lightbox): a gallery's caption sits in a two-line band #9810), which keyboard/keyboardHeight.ts and keyboard/useMobileKeyboard.ts, changed here, import directly. It also changes Layer/useLayer.tsx (fix(layer): a release does not dismiss the layer it opened #11258, fix(layer): a press on another trigger of an open layer opens it there #11337), one of the shared layer modules DEC-31 lists. Since 36f68b0, main also changes BottomSheet/BottomSheet.tsx (fix(BottomSheet): a flick's close clears the scrim along the same spring #11400, refactor(layer): a closing BottomSheet takes the shared input hold #11447), which this change's test and story import directly. The story's direct imports Button/Button.tsx, NumberInput/NumberInput.tsx and NumberInput/index.ts change too (fix(Button, Popover, Dialog): keep an edge in forced-colors mode #7677, fix(core): no press scale on a trigger whose own layer is open #11062, fix(DateInput, DateTimeInput): a value passed at the revealing commit keeps the rejected date entry #11470, feat(NumberInput, Pagination): entryErrorBehavior on NumberInput #11492). Shared motion and layer modules change as well, among them Layer/inputHold.ts (refactor(layer): a closing BottomSheet takes the shared input hold #11447, feat(AlertDialog): touch motion on the theme's timing #8373), motion/themeTiming.ts (feat(AlertDialog): touch motion on the theme's timing #8373) and motion/uikit/swipeActions.ts (feat(core): swipe actions come from createSwipe on the shared drag path #8690). So evidence from earlier heads does not carry (spec:AST-094 DEC-31). Device runs at b18489a: pending.
  • At b18489a: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 errors, knowledge records, and the shared-identity and touch-bundle checks pass (23/23). Keyboard, Layer, BottomSheet, Text, Tooltip, field, Chat, motion, gestures, click-guard, resize-observer, layout-viewport, input-stream and press-feedback units: 5,213. Nine interaction specs pass in Chromium (75) and in WebKit's CI container (58, 17 skipped). BottomSheetResizesContent.interaction.browser.spec.ts passes 3 of 3 in Chromium. pnpm review:pre has no findings, and the merge into main is clean.
  • First-load JavaScript, gzip, on architecture:component-import-boundaries INV10's four reference pages and a BottomSheet page. Each page is a production bundle of the built packages that imports exactly its components. It is built with the size report's esbuild options, and only its eager chunks count. The base is feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head 929b3a5.
    • Docs 80,791 → 81,157 B (+366), form 108,931 → 109,584 B (+653), menu 132,525 → 132,946 B (+421) and table 142,839 → 143,240 B (+401).
    • BottomSheet, Button and Text: 129,568 → 130,225 B (+657).
    • On every page the growth is in keyboard/keyboardHeight.ts, which measures the room. On the form and BottomSheet pages, keyboardTarget.ts and useMobileKeyboard.ts grow too.
    • Against main 4800d99, with feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's lines, the pages grow: docs +595, form +26,622, menu +871, table +874 and BottomSheet +2,870 B.
    • The room's handling is default behavior, with no prop, so INV10's optional-feature budget does not apply (DEC-5). A shared module's growth is reported here, as INV10 asks.
  • At 32a6c71: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 errors, knowledge records, and the shared-identity and touch-bundle checks pass (18/18). Keyboard, Layer, BottomSheet, Text, Tooltip, field and Chat units: 2,778. Nine interaction specs pass in Chromium (75) and in WebKit's CI container (58, 17 skipped). They are the eight listed for feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777 and BottomSheet's resizes-content spec. pnpm review:pre has no findings, and the merge into main is clean.
  • e1c930b merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head bfb1a32, which merges main be99721. Its own lines against that head equal ad19d37's against d4a7d3b. The one conflict, keyboardHeight.ts's imports, keeps both sides.
  • Node 24.22.1 from .nvmrc, after pnpm install --frozen-lockfile, at ad19d37. acb6a6e merges feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head d4a7d3b into 00f0a42. Its own lines against that head equal 00f0a42's against ac25529. 8390183 then makes getResizedRoom one reader that returns the room and its width. Before that, 7ff69d7 merged feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's earlier head ac25529 (on main f27380a) into e33ca57. That merge moves this change's scroll-back lines into the scroll back that feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777 now keeps in keyboardTarget.ts. Its own lines against that head equal e33ca57's against d3e9cce, apart from that move.
  • 6f06e49 counts the room only while a text-entry control has focus. A window that gets shorter at the same width with nothing focused, as in Android's split screen, then makes no room. Its new case fails on 7ff69d7's code.
  • 620f4f6 runs BottomSheetResizesContent.interaction.browser.spec.ts in Chromium only. Only Chrome on Android shrinks the layout viewport for the keyboard, and WebKit's project failed its Tall-sheet case on every build.
  • At e1c930b: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 errors, knowledge records and the shared-identity check pass. Keyboard, Layer, BottomSheet, Text, Tooltip, field and Chat units: 2,767. The seven keyboard interaction specs pass in Chromium (72) and in WebKit's CI container (55, 17 skipped).
  • At ad19d37: CI=true pnpm lint 0 errors, knowledge records, Prettier and pnpm review:pre (no findings). At bed039e, which differs only by feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's JSDoc example fence: pnpm build, then pnpm typecheck: 0 errors. The shared-identity check passes. The whole UI project: 993 files, 24,444 tests. Seven keyboard interaction specs pass in Chromium (72) and in WebKit's CI container (55, 17 skipped). They are this one, BottomSheet's keyboard inset, the search field, field focus timing, Chat, capped lists and the input hold. The fields' accessibility specs pass in Chromium (49).
  • The red arms, emulator sets and simulator runs below ran on earlier heads. An Android emulator run at this head is pending.
  • vitest run passes 325 files and 7,625 tests over these areas: TextInput, TextArea, NumberInput, the keyboard module, the motion module, BottomSheet, Chat, Layer and Popover. It also covers Outline, DateInput, ProgressBar, the touch and private-attribute helpers, the gestures, the hooks, utils and the sandbox's route tests. The UI tests for the changed set (--project ui --changed): 506 files, 15,729 tests pass.
  • Red-first, each arm a commit on an earlier head in the fork:
    • 415038324f3e9bf1a5ad7420b95c48c2eddb9e90, with keyboardHeight.ts, keyboardTarget.ts, useMobileKeyboard.ts and keyboardScrollBack.ts as at feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head. These cases fail:
      • keeps a field in the page 10 px above the keyboard where the browser shrinks the layout viewport for it
      • keeps a field that mounts after the browser shrank the layout viewport 10 px above the keyboard
      • scrolls the page back once the browser grows the layout viewport again after the keyboard
      • keeps the field 10 px above the keyboard where the browser shrinks the layout viewport for it (BottomSheet)
      • the two turn cases below
      • ends the wait for the fold when a keyboard that resizes the page comes back
      • follows the room while the long press that opened a keyboard that resizes the page is held, and waits for a press that starts after the reveal
    • In that arm, the unchanged-field, toolbar and fine-pointer controls pass.
    • 1b5df1fce1078d11f65abf8b326d273962cb6968, the turn fix undone: the tallest box is forgotten at each new width, and the scroll back watches on across a new width. Two cases fail:
      • "keeps the room across a turn of the phone and back while the keyboard resizes the page, so the field is 10 px clear again"
      • "puts nothing back at a turn of the phone while the keyboard shows, nor when it closes after"
    • c939fadd02ea3facd087897cccb8102fd62f28b3, only the tallest box forgotten: the turn-and-back case fails. 353b3f6b83de432d4826236f87cf245131def43f, only the watch left on: the put-nothing-back case fails, as the turn's report reads as the keyboard's close.
    • ddb746215dc97ae3c3e831778bfa2ecaa74da7b2, the wait for Firefox's fold ended only by a keyboard height: the resized-keyboard case fails, with the wait's scroll listener left behind.
    • d6f2e423366cde7eb88e0a885a17e5247ff58cb9, the show's first reveal counted only at a keyboard height: the long-press case fails. A room change during a later press then moves the field. ea33e465cc54cb8101ea18c2f4ba9a62d6248724, the hide noted only when a keyboard height goes: the same case fails once the keyboard goes during a later press.
    • 0c093601c27ac10a0bd10873e2c23a68f0a64b86, the room read from innerHeight instead of the root's box. This case fails: "takes no room from Chrome's toolbar coming back, which shrinks the viewport but not the root's box".
    • 41e620b3687fef0f426bff5c1a71f7908b61caa7, the tallest box seeded again by each new subscriber: the late-field, scroll-back and turn-and-back cases fail.
    • 6366d3003eeca34d25ca5a46d43a6cb1f33e3486, without the pointer check. BottomSheet's case fails: "takes no room under a fine pointer, where a window made shorter at the same width is no keyboard".
    • 623f2c655c9396005777a8910d31eba03846c768, the reveal's scroll recorded only with a keyboard height: the scroll-back case fails.
    • 45c6a03363528634eb5906bd1529e4339ddea252, the scroll back started at any report with no keyboard height: the scroll-back case fails. It fails at a report Chrome sends while the page is still short, and so does the long-press case.
  • In Chromium with a coarse pointer (hasTouch, isMobile), BottomSheetResizesContent.interaction.browser.spec.ts shrinks the page's viewport by 300 px. The Mobile keyboard sheet's field is focused, and the spec samples every frame.
    • On a build of d7f05aa, the field lands 10 px above the keyboard in the frame the viewport shrinks and stays there. A field already 10 px clear does not move. BottomSheet's keyboard-inset spec passes with it (11 in all, 2 of 2).
    • On a build of feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's head 929b3a5, the last field is 276.1 px under the new bottom in the first frame at the new size. From the next frame, Chrome's own focus scroll leaves it 0.1 px under the keyboard's top (2 of 2).
    • On a build of an earlier head, d963108, the viewport shrinks by 300 px (2 of 2). There the field of the new Mobile keyboard: a field high in a page that scrolls story stays at 64 to 88 px, and the page stays unscrolled.
  • At b18489a, the already-clear case sizes its keyboard from where the first field rests. The field is then 12 px clear of the keyboard's top before any move. It checks the field's clearance rounded to the pixel, as the first case does. Both cases pass (3 of 3), and the field ends 34.8 px clear with no scroll.
    • At 517ac29 the case shrank the viewport by 300 px. The first field rested at 427.1 px, and only the sheet's own reflow at the new height left it 10.9 px clear.
    • 03754970d3, that case with the sheet's content 20 px lower: the field rests at 447.1 px. Core reveals it by 19 px to 9.875 px clear, and the case fails.
    • ac5a489771, the sized case under the same layout: both cases pass, and the field ends 33.2 px clear with no scroll.
    • 9c2350a1e3, the sheet scrolling by the room it lost instead of revealing: the sized case fails, with a scroll of 274 px. The first case fails too, at 23.9 px clear.
  • CI=true pnpm lint: 0 errors. pnpm build, then pnpm typecheck: 0 errors. Knowledge records, changesets and their coverage pass; pnpm api:report adds nothing for the keyboard module, the fields or BottomSheet. The TextInput accessibility specs pass in Chromium (33). pnpm review:pre: no findings.
  • With no keyboard open, a build of feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's code at its head d3e9cce and a build of e33ca57 ran the same stories. They ran in desktop Chromium (1280 × 800, mouse) and the iOS 26.2 Simulator (iPhone 17 Pro, Safari). Each field's, the docked toolbar's and the sheet's drawn box was read from the page. The largest change is 0 px over 5 elements in TextInput's Mobile keyboard story, and over 13 in BottomSheet's, with the sheet open. The sheet's content height is unchanged (1,499 px on desktop, 1,731 px on the phone), and the page does not scroll (captures and offsets). The new "Mobile keyboard: a field high in a page that scrolls" story is the only fixture change; no existing story's framing moves.
  • Android emulator, an independent emulator set at beb313d, with interactive-widget=resizes-content in Chrome and Firefox for Android: 6 of 6 pass. Later heads change the keyboard code, so that set does not carry. The sheet's last field ends 10 px clear with no pan. The high field does not move. Notes ends 9.8 to 10 px clear, and Back returns the page. A drag with the keyboard up makes no Core scroll call until the finger lifts, and Back keeps the drag's scroll. A long press that focuses a field is not reproducible there, since a long press does not open Gboard. The unit tests cover the keyboard's first report during that press. In Chrome's landscape the field ends on the keyboard's top edge (−0.2 px; Gap 15); turning back closes Gboard there. In Firefox, back in portrait with Gboard up, a field the landscape reveal left clear stays 333.6 px above it. No scroller moves a field already clear (FR8), and a width change keeps the page where it left it (FR9's close).
  • Android emulator (Android 16, Gboard, density 420 dpi): an independent emulator set at ec350b9, an earlier head of this pull request, with interactive-widget=resizes-content.
    • It ran Chrome 133 and Firefox for Android 159, each at normal speed, 4× or slow, and with animations removed.
    • The sheet's last field ends 10.0 px clear with no pan (6 of 6).
    • Notes, scrolled low, ends 9.8 and 10.0 px clear, and Back returns the page to its place before the reveal.
    • The high field does not move. A field focused after Back moves by exactly the page's scroll (151.2 px).
    • The resize's reflow lands Title 57.1 and 68.9 px clear at a page scroll of 0, and Title is not scrolled.
    • The sheet's first field rides up 26.9 px with the sheet's own reflow in Chrome (0.0 in Firefox) and stays 85 px clear.
    • The two rows now fail on a scroll rather than any move.
    • In landscape, Notes stays on the keyboard's top (−0.2 px; Gap 15), and the page is not scrolled back (434 after the keyboard closes).
  • Safari on iOS (iOS 26.2, iPhone 17 Pro, iOS Simulator), on a build of that earlier head (9 takes). The root's box keeps its size for iOS's keyboard, so the room reads 0 and the fields act as in feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777.
    • Title, Quantity (numeric keypad) and Notes end 9.6 px above the keyboard.
    • Message's toolbar meets the keyboard's top and is back at rest after the blur.
    • The last field of a scroll area and of a short page end 10.0 and 10.0 px clear.
    • A low scroll area's field ends 9.6 px clear, and a floating panel's and a set-height sheet's end 10.0 and 10.0 px clear.

Public and internal API delta

Size: +1,198/−58 lines (929b3a5..b18489a): source +313/−43, tests +825/−4, docs and changeset +60/−11. No new module.

App-level size at ad19d37, against #9777's head of that time: +858 B minified on the sandbox app's whole build. It sits in the keyboard chunks a page with a field loads: keyboardHeight's chunk +534 B, keyboardTarget +231 B and useMobileKeyboard +130 B. Together they add 354 B gzip, and all the chunks that change add 472 B gzip. The shared index chunk is 26 B smaller, and other chunks move by at most 5 B.

Public: no export, prop, type or default value changes. One changed behavior: where an app sets interactive-widget=resizes-content, a focused field ends 10 px clear of the keyboard in Chrome on Android. Why: before, it ended against the keyboard's top edge.

Internal, inside packages/core and not exported from the package:

  • keyboard/keyboardHeight.ts gains getResizedRoom(win), which returns the room and the root's box width it is measured at. Example: const isKeyboardUp = getKeyboardHeight(window) > 0 || getResizedRoom(window).room > 0;. Why: under resizes-content the keyboard height reads 0, and the room the browser makes by shrinking the layout viewport is the measure. The room counts only while a text-entry control has focus. Both reveals and the scroll back read this one measurement, and the scroll back reads its width to tell a turn. Existing exports considered: getKeyboardHeight reads 0 under resizes-content, so it cannot carry this room.

Writing rubric results

R1 narration: none; present tense.
R2 research: none in the record.
R3 evidence: the rows name methods and failures, not runs.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: one, recorded as Gap 14.
R7 project status: none. Gap 15's new sentence states what the system does today.

vjeux added 2 commits November 3, 2026 08:38
Each passes its input to `useMobileKeyboard` from its own render, with
no prop and no Effect of its own. On focus the field decides where it
is: inside a keyboard target such as a Tall BottomSheet it moves
nothing; in an app's bar docked at the viewport's bottom, the bar rides
the keyboard, its bottom on the keyboard's top; in scrolling content,
its nearest scroller, the document included, scrolls it 10 px above the
keyboard in the keyboard's report. In a fixed container the app
positions itself, a scroller around the field reveals it, and with none
the browser's own reveal stays. Its first tap and focus moves into it
arrive without the browser's reveal where the module places the field,
so the page never pans there.

A scroll area does not gain the range it lacks at its end yet. Where a
field's scroll area cannot place it, the document reveals it, in the
page and in a fixed container where the document's scroll moves the
container, as in Safari while its keyboard shows; elsewhere Core scrolls
the document back. Where the document cannot scroll far enough, as at a
short page's end in Chrome, a pan of the visual viewport takes the rest
in the same frame (`panVisualViewportTo`): a probe fixed in the layout
viewport is scrolled into view, as the reveal-pan watch puts a pan back.
The watch takes Core's own pan as the new rest. Firefox for Android does
not pan for the probe. A page with nothing to scroll keeps the browser's
own reveal.

On Chrome's show, a docked bar first sets its field 4 px above the
keyboard's top at once, as the Tall sheet does, and only the rest rides,
so Chrome's own pan finds the field clear. Every viewport report now
feeds the ride's reveal-pan watch, so a pan Chrome still makes is put
back, and a pan made at one keyboard height goes back at the next.
Under Remove animations, Gboard first reports a keyboard 48 px tall,
and Chrome may then reveal the bar's field itself: it scrolls the page
behind the bar, then pans. In Chrome, the ride's watch scrolls the
document back as well, when the scroll and the pan centre the field as
Chrome's reveal does; the app's own scroll to another element stays.

On iOS, a reveal that places the field rises on the browser's smooth
scroll from the keyboard's first report, which comes as the keyboard
starts to slide, so the field rises beside it (`risesSmoothly`, which
reads Core's iOS WebKit check, `isIosWebKit`). The scroll back records
where the rise is headed, and a rise still on its way when the keyboard
changes height carries on from its target. Under Reduce Motion, in a
theme that reduces motion for everyone, and in Chrome, which checks the
field in the resize's own commit, the reveal moves at once. The rise and
the scroll back ask the motion module's new `reducesMotion`, beside
`reducedMotionFade`, which now uses it, so a theme that reduces motion
for everyone counts as the setting for both. A scroll area's reveal goes
through its own `scrollBy` with an explicit behavior where it has one,
so a smooth `scroll-behavior` on the area cannot slow an instant reveal,
as the Tall sheet's reveal already does.

When the keyboard closes, each scroller a reveal moved scrolls back to
where it was (keyboardScrollBack.ts), on the browser's smooth scroll.
Safari on iOS reports the keyboard gone about half a second after the
blur that closes it, once it is down. There the scroll back starts at
that blur, once the focus change settles on nothing that brings up a
keyboard with no finger on the screen, and slides down beside the
keyboard; the report only confirms it. A finger then can be a tap that
brings the keyboard back, so the report decides, as elsewhere and under
Reduce Motion, where the scroll lands at once. Safari applies a scripted
scroll a frame late, so a scroll set each frame jitters. A scroller the
person scrolled meanwhile keeps their scroll. A field that gains focus
during the slide stops the scroll back where the page is
(`stopKeyboardScrollBack`), and its reveal goes on from there as Core's
own scroll. A sandbox page puts three fields in the middle of a page
that scrolls the document.

Each field's `.keyboard.test.tsx` drives the keyboard module's test
double. Mobile keyboard stories on TextInput place the fields low in the
page, a TextInput in a toolbar fixed at the bottom (docked, floating
above the edge, or with its own `translate`), a last field at the end of
a short page and of a scroll area, a scroll area low on the page, a
scroll area in a floating panel and in a full-viewport panel, and a
field in a sheet of a set height.

Firefox for Android can carry the reveal's document scroll as a
visual-viewport offset, show the document where it was before the
reveal at the keyboard's hide report, and turn the offset back into a
document scroll only after it. The scroll back then waits up to a
second for the first document scroll: one that lands where Core left
the document is the browser's own, and the scroll back follows it. A
touch, a keyboard that comes back, the field's page going, or the
wait's end puts nothing back.

The reveal-pan watch's touch flag now holds through a report that comes
while a finger is on the screen. In Firefox the toolbar hides in a drag,
which changes the measured keyboard height mid-drag; the watch then took
the drag's own pan for the browser's and put it back. The input stream
now counts the fingers on the screen from touch events
(`isTouchOnScreen`), only while `touchend` and `touchcancel` are heard.
A native pan keeps a finger there, though its `pointercancel` drops the
press from `getDownPresses`, so that record cannot serve. The watch's
shared touch subscription hears those two types, and a report reads the
count.

After the show's first reveal, a keyboard report reveals nothing while a
press that started after the last reveal is down. In Firefox the toolbar
hides in a drag, and the reveal re-applied itself with small scrolls
under the person's finger. The report's height is kept, so the field
stays where the person put it, and a later report with the finger up
reveals it as before. The press that focused the field holds nothing: a
long press focuses with the finger still down, and Gboard can report a
48 px keyboard first, then its full height. The input stream also counts
the touches that start (`getTouchStartCount`), and each reveal notes
that count. The keyboard module reads the finger count through
`isFingerOnScreen`: a finger down at the keyboard's last hide counts no
more until a touch starts, since a touch whose target leaves the page
ends at a node the window never hears. The count includes a stylus,
whose drag moves the page as a finger does.

Nine unit tests cover the scroll back from the blur on iOS: it starts at
the blur and the report moves nothing more; focus that moves on to
another field or into a frame keeps the page; a finger on the screen at
the blur leaves it to the report; a person's scroll stands; Reduce
Motion waits for the report; a field focused again during the slide
stops the scroll back and rises from where the page is, or stays where a
touch stopped it with nothing left to raise; and the next close goes
back to the first place, at a blur or at a report.

Six unit tests cover the scroll back: the page's smooth scroll at the
report (nothing before it), Reduce Motion, a theme that reduces motion,
a person's scroll kept, a scroll area after Back, and a focus move to
another field. Firefox-shaped cases carry the reveal as an offset and
close the keyboard before the fold: the scroll back follows the fold, a
touch-drag control keeps the page, only the first document scroll
counts, and each way the wait ends leaves no scroll listener. Safari's
and Chrome's close sequences still decide at the report, with no wait. A
Firefox-shaped drag grows the viewport twice with the finger down and
finds no put-back; after the finger is up, a browser pan is put back.
Another drags the page with the toolbar hiding twice and finds no reveal
scroll until the finger is up. A long press focuses the field while
Gboard grows from 48 to 290 px, and the field is revealed at 290; the
next show's first reveal runs again under the same press, and a press
that starts after the reveal holds the next report until it lifts. After
the keyboard goes with no finger down, a long press that brings it back
is revealed with that press still down. Another holds a report while the
long press's finger stays down after a second finger tapped and lifted.
Another misses a touch's end, as when its target leaves the page, and
finds a browser pan put back once the keyboard has hidden and shown
again. The input stream's tests count fingers through a second finger, a
cancel and a native pan's `pointercancel`, count nothing while a touch
end could go unheard, and count the touches that start. Six cover the
rise on iOS: its smooth scroll, Reduce Motion, a theme that reduces
motion, the scroll back after a rise drawn later, a rise carried on at a
new height, and no second reveal while a scroll area's rise is drawn.
Their CSS.supports stub answers both of Safari's forms, a property and
value or a condition. Another drives a scroll area with a smooth
`scroll-behavior` and finds its own `scrollBy` called at once. Two in
the motion module cover `reducesMotion`: the setting, and a theme that
reduces motion for everyone.
FR9's scrolling-content bullet adds the spec owners' sentence: where a
browser carries out the document's scroll by moving the visual viewport,
that offset is the reveal, not a pan. Gap 2 is met. Gaps 1, 10 and 11
say what the three fields now do. Gap 11 keeps the missing scroll range
as the fix; until a scroller gains it, Core pans the visual viewport
where the document cannot scroll far enough.

Two verification rows cover Firefox for Android (the offset equals the
computed reveal) and Chrome (no pan added after Core places the field).
Chrome's names the cases Core pans, and fails a field Core pans that
ends other than 10 CSS px above the keyboard. In Firefox for Android
the pan moves nothing where the page has no scroll range; Gap 11 names
those cases.
The device-evidence row records that a docked toolbar resting under the
keyboard while a field outside it has focus is not a failure.
BottomSheet's height doc says what such a field gets in a sheet that is
not a fully expanded Tall sheet.

FR9's scrolling-content bullet adds the close: each scroller that
revealed the field scrolls back to where it was before the reveal, and
a scroll the person made while the keyboard showed is kept. A
verification row covers a field in the middle of a page that scrolls
the document.

FR9's scrolling-content bullet adds the open: on iOS the field rises on
the browser's own smooth scroll beside the keyboard's slide, settling
within 0.15 s after the keyboard settles, and it moves in one frame
under Reduce Motion, in a theme that reduces motion for everyone, and in
other browsers. A verification row reads every drawn frame of the rise.
Gap 13 records Chrome's rise, which stays in one frame because Chrome
checks the field in the resize's own commit; Firefox for Android takes
the same path. The device-evidence row's
failure for a reveal later than the keyboard's report notes that on iOS
the rise starts in that frame and settles as FR9 states.

FR9's scrolling-content bullet adds the hold: a show's first report
always places the field, and a later report that comes while a finger
is down, after a touch has begun since the field's last placement,
moves nothing.

FR9's close adds that at the hide report, Firefox for Android can still
show the document where it was before the reveal, and turns the reveal
back into a document scroll only after that report; the scroll back
follows that scroll. A row closes the keyboard with Back in
Firefox for Android at normal speed and on a slow profile.

The input-fields family's FR13 status says the same: the three fields
meet FR13 through FR9, apart from Gap 11.

FR9's close now starts the scroll back at the blur that closes the
keyboard in Safari on iOS, beside the keyboard's slide; the report that
the keyboard has gone comes later and only confirms it. Elsewhere it
starts at that report, and under Reduce Motion, and in a theme that
reduces motion for everyone, it lands at once there. A scroller the
person scrolled keeps the person's scroll, a finger on the screen at the
blur leaves the scroll back to the report, and a field that gains focus
during the slide stops the scroll back where the page is. Safari's close
row reads every drawn frame from Done until the page rests, and adds a
tap on the field 80 ms and 150 ms after Done. The open sentence is
rewrapped, word for word.
@vercel

vercel Bot commented Nov 7, 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 Nov 14, 2026 8:11pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 14, 2026, 8:35 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 7, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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.

Thanks for restoring the 10 px clearance under interactive-widget=resizes-content; approval waits on a spec decision and three fixes.

Spec decision: this branch rewrites spec:AST-099: FR8's resizes-content sentence; the FR8 Chrome verification row, whose failure today includes "adding an offset under interactive-widget=resizes-content"; a new FR8 row; FR9's "that offset is this reveal, not a pan" sentence; two new FR9 rows with a docked-toolbar carve-out; and the interim document reveal that Gaps 10 and 11 record against FR9's "Nothing else moves". An engineering owner records that decision by commenting /approve-spec with this pull request's full head commit SHA (the author can do so as an engineering owner), or says which of these to drop or reword.

Blocking findings (needed whatever the spec decision):

  • keyboardTarget.ts:660 and useMobileKeyboard.ts:975 read documentElement.clientHeight and clientWidth on every visual-viewport resize and scroll and every window resize, which breaks INV18's and INV11's limit of one layout read per keyboard change, so measure the root's box once per report in the keyboard module's shared listener (or with a ResizeObserver) and read the cached room.
  • A field rendered after the resized keyboard is already up, then focused, is revealed flush with the keyboard (0 px) rather than 10 px, because each trackResizedRoom tracker is seeded at attach, so keep the tallest root box per window in the module and add a test that mounts and focuses a field after the shrink.
  • AST-099's platform-support clause requires Android emulator evidence at the exact head to gate merge, and the description says it is still pending.

Non-blocking: under resizes-content, an app's docked bottom bar can cover the field the reveal places 10 px above the layout bottom (the Mobile keyboard story's Notes field), and the new FR8 row could name that case.

[Automated review]

@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 3894c98

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 2026
@vjeux
vjeux force-pushed the c09/resizes-content-clearance branch from 3894c98 to edb1ad8 Compare November 7, 2026 06:45
@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

/approve-spec edb1ad8

@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.

Requesting changes. The interactive-widget=resizes-content fix itself works in the unit tests, and the AST-099 changes carry an engineering owner's approval for this spec text, but four items block merge.

  • Miss: desktop behavior change needs an owner decision: the Tall sheet's resized-room reveal (useMobileKeyboard.ts lines 975-981, with its 10 px clearance at 425-426) also runs under a mouse or trackpad, so once a desktop window gets shorter at the same width, a focused field in an open Tall BottomSheet scrolls up to 10 px; gate it to touch input (for example, read the room only when isTouch) or cite an owner decision for that desktop behavior.
  • The diff carries 2,057 authored lines, over the 2,000-line limit, because #9777's 1,587 lines ride in without a declared stack; add the identical line Stack: #9777 → #10462 to both descriptions, or land #9777 first and rebase.
  • AST-099's platform support makes emulator evidence at the exact head a merge gate, and the Android emulator run under interactive-widget=resizes-content is still pending.
  • Miss: the same gate needs an iOS Simulator run for the TextInput, TextArea and NumberInput behavior on iOS that this branch carries from #9777, which the description does not list.

The per-report root-box reads, the late-mounted field and the comment wording from the last review are fixed. Two comments now say the room is read up front where nothing is read (non-blocking, see the inline note).

[Automated review]

@vjeux
vjeux force-pushed the c09/resizes-content-clearance branch from edb1ad8 to 8fa4b25 Compare November 7, 2026 07:06
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 2026

@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.

Approval waits on a spec decision, and three fixes are still needed.

Spec decision: this head adds Gap 13 to spec:AST-099, so the earlier spec approval no longer covers it. An engineering owner records whether the FR8, FR9, Gap and input-fields FR13 changes stand as written by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.

  • Miss: desktop behavior change needs an owner decision: the Tall sheet's resized-room reveal (useMobileKeyboard.ts lines 975-981, with its 10 px clearance at line 426) also runs under a mouse or trackpad, so once a desktop window gets shorter at the same width, a focused field in an open Tall BottomSheet scrolls up to 10 px; gate it to touch input (for example, read the room only when isTouch) or cite an owner decision for that desktop behavior.
  • The diff carries 2,063 authored lines, over the 2,000-line limit, because #9777's 1,587 lines ride in without a declared stack; add the identical line Stack: #9777 → #10462 to both descriptions, or land #9777 first and rebase.
  • AST-099's platform support makes emulator evidence at the exact head a merge gate, and the Android emulator run under interactive-widget=resizes-content is still pending.
  • Miss: the same gate needs an iOS Simulator run for the TextInput, TextArea and NumberInput behavior on iOS that this branch carries from #9777, which the description does not list.

The two comments that say the room is read up front are still non-blocking suggestions (see the inline notes).

[Automated review]

@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 for the stack: both pull requests still need Android emulator evidence, and #10462 also needs a spec decision.

#9777: changes requested

  • AST-099's platform support makes Android emulator evidence at the exact head a merge gate, and this pull request's Chrome with Gboard and Firefox for Android runs at its head are still pending.

#10462: changes requested

  • Spec decision: this head changes spec:AST-099 (FR8's interactive-widget=resizes-content sentence and its Chrome row, a new Tall-sheet row and Gap 13) with no engineering owner's approval at this head, so an engineering owner records the decision by commenting /approve-spec <full head SHA>, which the author may do as an engineering owner.
  • AST-099's platform support makes Android emulator evidence at the exact head a merge gate, and the Chrome with Gboard run under interactive-widget=resizes-content at this head is still pending.

Whole stack: the evaluation fails on the missing emulator evidence above. A pull request lands only when it and every pull request below it are approved.

The Tall sheet's desktop scroll from the last review is fixed, and the size limit no longer applies now that the stack is declared.

[Automated review]

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec c6bb612

@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 for the stack: the spec changes in both pull requests are approved at their current heads and no code defect remains, but both still need the Android emulator evidence that spec:AST-099 makes a merge gate.

#9777: changes requested

  • spec:AST-099 Platform support needs Android emulator evidence at the exact head, and the description says the emulator sets at this head are pending (the Pixel 8 take is a physical-phone check, which the record does not accept for Android claims), so please run the Android FR9 rows in Chrome with Gboard and Firefox for Android at normal speed, with animations removed and on the slow profile, and state each result in the description.

#10462: changes requested

  • spec:AST-099 Platform support needs Android emulator evidence at this exact head, and the description says that run is pending, so please run the resizes-content FR8 rows and FR9's close in Chrome with Gboard and Firefox for Android at normal speed, with animations removed and on the slow profile, and state each result in the description.

Whole stack: it fails on the missing emulator evidence, while the public API is unchanged and the stack merges into main cleanly. A pull request lands only when it and every pull request below it are approved. Earlier emulator runs do not carry to these heads, because the code changed since they ran, and the main merges since then change a shared motion module and the sandbox route list both pull requests edit; a text statement of each run (emulator, browser, head, animation scale, result) is enough.

Claims and files checked
  • Claim, #10462 changeset (under resizes-content, a focused field in a scrolling page, a scrolling area or a fully expanded Tall sheet sits 10 px above the keyboard in Chrome on Android): verified in the room path of the keyboard target and the sheet hook (keyboardTarget.ts:800-815, useMobileKeyboard.ts:437, :986-992), their unit cases (BottomSheet.test.tsx:3321) and a Chromium capture with a coarse pointer (9.8 px clear, against −0.2 px before); emulator evidence at this head is the gap above.
  • Claim, the room is measured once per report while a field has focus, against the root's box from a focus with no keyboard up, kept per width: verified (keyboardHeight.ts:180-212, :245-266, :286-299).
  • Claim, the room counts only where the page's last viewport meta sets resizes-content: verified (keyboardHeight.ts:218-228 and the default-viewport and later-meta unit cases).
  • Claim, focus from another text-entry control, including Core's own focus takeover, keeps the room's base: verified (keyboardHeight.ts:250-256, :597-602 and the plain-input unit case).
  • Claim, a covered field is placed 10 px above the new bottom, a field already clear does not move, nothing rides, and the sheet's overlay clearance is unchanged: verified (BottomSheet.test.tsx:3353, useMobileKeyboard.ts:436-437 and the already-clear unit case).
  • Claim, the scroll back runs once the room is gone, and a turn while the keyboard shows puts nothing back: verified (keyboardTarget.ts:1372-1390 and the scroll-back and turn unit cases).
  • Claim, the room counts as a show for the touch hold: verified (keyboardTarget.ts:747-748).
  • Claim, the keyboard store's shared key is version 3, with a two-copy case: verified (keyboardHeight.ts:132-135 and the two-copy unit case).
  • Claim, this head merges #9777's head and its own lines are unchanged: verified by comparing the increments.
  • Claim, no export, prop, type or default changes: verified with the repository's API generator on built trees (no row).
  • Claim, the size line: verified.
  • Claims, device runs at this head pending: true, and it is the gap above.
  • Claims, test counts, red-first arms, mutants, browser measurements and bundle sizes: not rechecked; the keyboard, sheet, field and input-stream suites pass at this head (411 tests).
  • Claim, #9777 changeset (the three fields keep themselves above the keyboard with nothing to turn on, rise on iOS, go back on close unless the person scrolled, ride a docked bar, leave a Tall sheet to the sheet, and change nothing under a mouse): verified in the field path and each field's keyboard test; emulator evidence at its head is the gap above.
  • Claims, #9777's head only merges main with its own lines unchanged; its size line; its iPhone and Pixel side-by-side: verified, verified, not rechecked (device evidence).
  • Files, #10462 (10): the AST-099 record is approved at this head and carries the evidence gap; the keyboard height, keyboard target and sheet hook sources, the keyboard README, the changeset, the story, the sheet test, the browser spec and the keyboard target test are clear, with one non-blocking note on two comments reworded from #9777.
  • Files, #9777 (24): the AST-099 record carries the evidence gap and, with the input-fields record, is approved at its head; the three fields, the keyboard module sources and tests, the input stream, the touch queries, the test double, the sheet doc, the changeset, the sandbox page and route, and the stories are clear.

Automated review (maintainer link)

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 04c7951

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

Decision: D-20261113-139

Records the owner's pick A on the keyboard reads at 04c7951, a restack on #9777's merged head. It waives nothing. Still required: the Android set at this head.

@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 for the stack: the spec changes in both pull requests are approved at their current heads and no code defect remains, but both still need the Android emulator evidence that spec:AST-099 makes a merge gate.

#9777: changes requested

  • spec:AST-099 Platform support needs Android emulator evidence at the exact head, and the description reports Android passes only at an earlier head (the latest main merge changes files this pull request edits, direct imports of the keyboard module and a shared layer module, so earlier runs do not carry), so please run the Android FR9 rows in Chrome with Gboard and Firefox for Android at normal speed, with animations removed and on the slow profile, add the real-phone side-by-side against the passed head that the maintainer's comment asks for, and state each result in the description.

#10462: changes requested

  • spec:AST-099 Platform support needs Android emulator evidence at this exact head, and the description says those runs are pending (earlier runs do not carry across the latest main merge), so please run the resizes-content FR8 rows and FR9's close in Chrome with Gboard and Firefox for Android at normal speed, with animations removed and on the slow profile, and state each result in the description.

Whole stack: it fails on the missing emulator evidence, while the public API is unchanged and the stack merges into main cleanly. A pull request lands only when it and every pull request below it are approved, and a text statement of each run (emulator or device, browser, head, animation scale, result) is enough.

Claims and files checked
  • Claim, #10462 changeset (under resizes-content, a focused field in a scrolling page, a scrolling area or a fully expanded Tall sheet sits 10 px above the keyboard in Chrome on Android): verified in the shared reveal path and the sheet hook (keyboardTarget.ts:744-815, useMobileKeyboard.ts:436-437, :986-992), their unit cases (BottomSheet.test.tsx:3377-3418) and a Chromium capture with a coarse pointer (9.8 px clear, against −0.2 px before); emulator evidence at this head is the gap above.
  • Claim, the room is measured once per report while a field has focus, against the root's box from a focus with no keyboard up, kept per width: verified (keyboardHeight.ts:180-212, :245-266, :286-299).
  • Claim, a returning browser toolbar adds no room because the root's box keeps its size: verified in code (the room reads the root's box, not the window height) and its unit case; the browser behavior itself rests on the author's device runs.
  • Claim, the room counts only where the page's last viewport meta sets resizes-content: verified (keyboardHeight.ts:218-228 and the default-viewport and later-meta unit cases).
  • Claim, focus from another text-entry control, including Core's own focus takeover, keeps the room's base: verified (keyboardHeight.ts:245-266, :594-602 and the plain-input unit case).
  • Claim, a covered field is placed 10 px above the new bottom, a field already clear does not move, nothing rides, and the sheet's overlay clearance is unchanged: verified (BottomSheet.test.tsx:3377-3418, useMobileKeyboard.ts:436-437, the already-clear unit cases and the capture's unchanged Title frame).
  • Claim, the scroll back runs once the room is gone, and a turn while the keyboard shows puts nothing back: verified (keyboardTarget.ts:1372-1390 and the scroll-back, split-screen and turn unit cases).
  • Claim, the room counts as a show for the touch hold: verified (keyboardTarget.ts:747-748).
  • Claim, the keyboard store's shared key is version 3, with a two-copy case: verified (keyboardHeight.ts:132-135 and the two-copy unit case).
  • Claims, this head and #9777's head only merge main with their own lines unchanged, and the merged main changes the sheet test, the click guard, the resize observer and the layer hook, so earlier device runs do not carry: verified by comparing the increments and the merged commits' files.
  • Claim, no export, prop, type or default changes: verified with the repository's API generator on built trees (no row).
  • Claim, the size line: verified.
  • Claims, device runs at this head pending: true, and they are the gap above.
  • Claims, test counts, red-first arms, mutants, browser measurements and bundle sizes: not rechecked; the keyboard, sheet, field and input-stream suites pass at this head (1,085 tests).
  • Claim, #9777 changeset (the three fields keep themselves above the keyboard with nothing to turn on, rise on iOS, go back on close unless the person scrolled, ride a docked bar, leave a Tall sheet to the sheet, and change nothing under a mouse): verified in the field path and each field's keyboard test; emulator evidence at its head is the gap above.
  • Claim, #9777's iPhone and Android passes: they ran at earlier heads, not this one.
  • Files, #10462 (10): the AST-099 record is approved at this head and carries the evidence gap; the keyboard height, keyboard target and sheet hook sources, the keyboard README, the changeset, the story, the sheet test, the browser spec and the keyboard target test are clear, with one non-blocking note on two comments reworded from #9777.
  • Files, #9777 (24): the AST-099 record carries the evidence gap and, with the input-fields record, is approved at its head; the three fields, the keyboard module sources and tests, the input stream, the touch queries, the test double, the sheet doc, the changeset, the sandbox page and route, and the stories are clear.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 517ac29

@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 for the stack: neither pull request has the exact-head Android emulator evidence that spec:AST-099 makes a merge gate.

#10462: changes requested (its spec:AST-099 text is approved at this head)

  • Required change: spec:AST-099 Platform support requires Android emulator evidence at this exact head, and the description says those runs are pending, so please run the resizes-content FR8 rows and FR9's close in Chrome with Gboard and Firefox for Android, at normal speed, with animations removed and on the slow profile, and state each result in the description.
  • Miss: the browser spec's "already 10 px clear" case (BottomSheetResizesContent.interaction.browser.spec.ts:152-170) uses a field that the 300 px shrink covers at the configured phone viewport, so Core reveals it to 9.875 px clear and the strict >= 10 check at line 167 fails in Chromium; please assert that the field is clear before the shrink, or size the shrink from the field's measured position, and allow the same 1 px rounding as the first case.
  • Required change: the description says that on #9777's code the sheet's last field ends 276 px under the shrunk viewport, but in Chromium it is that far under only in the first frames and Chrome's own focus scroll then leaves it on the keyboard's top edge (-0.1 px), so please correct that line.
  • Newly live check: this change grows the shared keyboard modules, so architecture:component-import-boundaries INV10 asks for the first-load gzip delta of the docs, form, menu and table reference pages, base against head, in the description.

#9777: changes requested (from its own review at its current head; its containment point is now met)

  • Spec decision: its spec:AST-099 and family:input-fields text has no approval at its head, including Core's own visual-viewport pan, which current FR9 rules out; an engineering owner records the decision by commenting /approve-spec with that head's full SHA, and the author may do so as an engineering owner.
  • Required change: spec:AST-099 Platform support requires Safari Simulator and Android emulator evidence at its exact head, so please run its FR9 rows there and state each result in its description.
  • Newly live check: INV10 asks for the per-page first-load gzip deltas of its grown shared modules.

Whole stack: fails on the missing exact-head emulator evidence; the public API is unchanged and the stack merges into main cleanly. A pull request lands only when it and every pull request below it are approved. A text statement of each run is enough: emulator or device, browser, head, animation scale and result.

Claims and files checked

Review mode: same-head; reason: none

  • Changeset (#10462): under resizes-content, a focused field in a page, a scroll area or a fully expanded Tall sheet sits 10 px above the keyboard in Chrome on Android. Verified in the shared reveal path and the sheet hook, their unit cases, and the browser spec's first case (9.9 px clear in every frame; 276 px under the keyboard in the first frames on #9777's head). Emulator evidence is missing.
  • Description: this head merges #9777's head and leaves this change's own lines unchanged. Verified: the increment's added and removed lines match the head reviewed before.
  • Description: the room is measured once per report, against the root's box at focus, kept per width, only under resizes-content while a text-entry control has focus. Verified in the keyboard module and its unit cases.
  • Description: a returning toolbar or a shorter fine-pointer window takes no room. Verified in code and the unit cases.
  • Description: the scroll back runs once the room is gone, and a turn while the keyboard shows puts nothing back. Verified in the scroll-back and turn unit cases.
  • Description: the keyboard store's shared key is version 3, with a two-copy case. Verified.
  • Description: no export, prop, type or default changes. Verified: the API surface report shows no change for any package.
  • Description: the size line. Verified.
  • Description: before (#9777's code) the sheet's last field ends 276 px under the shrunk viewport; after, 10 px clear. Partly false: the field is 276 px under only in the first frames and ends on the keyboard's top edge. The after part is verified (9.9 px clear in every frame).
  • Description: no field already clear is moved. Verified in the unit cases; the browser case for it fails (see above).
  • Description: nine interaction specs pass in Chromium at this head. Contradicted for the resizes-content sheet spec, whose already-clear case fails in a Chromium run (see above); the build, typecheck, lint and bundle figures were not rechecked.
  • Description: device runs at this head are pending. True; see the required change.
  • Files (#10462, 10): the browser spec has the finding above. The AST-099 record is owner-approved at this head and carries the evidence gap. The keyboard height, keyboard target and sheet hook sources, the keyboard README, the changeset, the story, the sheet unit test and the keyboard target test are clear.
  • Files (#9777, 24): as its own review at its current head lists them.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec b18489a

@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 for the stack: neither pull request has the Android emulator evidence at its exact head that spec:AST-099 makes a merge gate.

#10462: changes requested (its spec:AST-099 changes are approved at this head)

  • Required change: spec:AST-099 Platform support requires Android emulator evidence at this exact head and the description says those runs are pending, so please run the resizes-content FR8 rows and FR9's close in Chrome with Gboard and in Firefox for Android, at normal speed, with animations removed and on the slow profile, and state each result in the description.
  • Required change: the Evidence section says that on #9777's code the sheet's last field "ends 276 px under the shrunk viewport", but it is that far under only in the first frame and Chrome's own focus scroll then leaves it 0.1 px under the keyboard's top, as your Testing section says, so please correct that line.

#9777: changes requested (its head is unchanged)

  • Spec decision: its spec:AST-099 and family:input-fields changes have no approval at its head; an engineering owner records the decision by commenting /approve-spec with that head's full SHA, and the author may do so as an engineering owner.
  • Required change: spec:AST-099 Platform support requires Safari Simulator and Android emulator evidence at its exact head, so please run its FR9 rows there and state each result in its description.

Whole stack: fails on the missing exact-head emulator evidence, while the public API is unchanged and the stack merges into main cleanly. A pull request lands only when it and every pull request below it are approved. A text statement of each run is enough: emulator or device, browser, head, animation scale and result.

Claims and files checked

Review mode: same-head; reason: none

  • Changeset (#10462): under resizes-content, a focused field in a page, a scroll area or a fully expanded Tall sheet sits 10 px above the keyboard in Chrome on Android. Verified in the reveal paths, their unit cases and the browser spec in Chromium; on-device evidence is missing.
  • Changeset (#9777): carried from its review at its current head.
  • Description: this head changes only the resizes-content browser spec, whose already-clear case sizes its keyboard from where the first field rests. Verified: one file, and both cases pass in Chromium.
  • Description: the room is measured once per report against the root's box at focus, kept per width, and counted only under resizes-content with a text-entry control focused. Verified in the keyboard module and its unit cases.
  • Description: a returning toolbar or a shorter fine-pointer window takes no room, and no scroller moves a clear field. Verified in the unit cases.
  • Description: the scroll back runs once the room is gone, and a turn puts nothing back. Verified in the unit cases.
  • Description: no export, prop, type or default changes. Verified: the API surface generator reports no change for any package.
  • Description: first-load gzip deltas for the four reference pages and a BottomSheet page. Reported as the import-boundaries record asks; not rebuilt here.
  • Description: before, on #9777's code, the sheet's last field ends 276 px under the shrunk viewport. False: see the required change above.
  • Description: device runs at this head are pending. True; see the required change above.
  • Description: build, typecheck, lint, the full unit totals and the other interaction specs pass. Not rechecked beyond the keyboard, field, BottomSheet and input-stream units.
  • Files (#10462, 10): the spec:AST-099 record is owner-approved at this head and carries the evidence gap; the changeset, story, browser spec, sheet unit test, keyboard README, keyboard height, keyboard target and sheet hook sources, and the keyboard target test are clear.
  • Files (#9777, 24): carried from its review at its current head.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — b18489a9 Deployed Nov 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants