Open
opened 2026-10-15 16:40:03 +00:00 by kayg
·
35 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#445
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kayg, 22:08 IST on 2026-10-15, iPhone, dark, prod at dev
499d1f8(after train k landed #405): the Journal list stops above a flat grey band about 65 pt tall at the bottom of the screen. The list is cut with a hard edge and the band does not match the page. No Safari toolbar is visible, so this is most likely the Home Screen app. The screenshot is attached in the conversation; it will be posted here.Same class of problem as #396 (PR #405,
apps/web/src/lib/home-screen.ts,--screen-h, WebKit bug 301994) and the mockup bands in #312 and #399. #405 is live, but the band remains.To do:
kayg's screenshot from the device (prod at
499d1f8, dark, Home Screen app):What the screenshot shows
I measured it in pixels. Its aspect ratio fits a 956 pt Pro Max:
position: fixed; bottom: 18px + safe-bottom. Its bottom edge is 52 pt above the band (18 + 34), not above the screen's bottom. So on this phone even fixed boxes end a status bar short, not onlysvh/dvh/innerHeight.black-translucentis working).bodybackground spreads to the whole page). So the page is painted down there, but nothing in the app reaches it.Cause
#405 assumed that
position: fixedboxes reach the real bottom. That holds on some releases but not on this one.fitHomeScreenmeasures a zero-width fixed box, so it measured the short height and set both--vhand--screen-hto it. Before #405,--screen-hwas100lvh, which reports the full height in these reports. Now the backdrop stopped short as well. The app, the list's glass, its scroller and the backdrop all ended at 894. The button is fixed, so it floated 62 pt higher than it should.Research
svh/dvhare right andvh/lvhovershoot.viewport-fit=coverdoesn't make the viewport match the screen. Open.innerHeightis 874 at 0 ms, then 812 at 342 ms, together withdvh/svh.vh/lvhstay 874. Sizing the shell withlvhput the tab bar at the real bottom. That was in the simulator, not on a phone.innerHeight,visualViewport.height,100vh/dvh,clientHeightand a fixedbottom:0box all stopped at 797 of 844 (47 short). The bottom strip was the body's colour. A box made taller still seemed to end at 797, and they gave up. That is the worst case, and the main thing only the phone can settle (see below).viewport-fit=cover+black-translucentis short by the top inset. Both use100lvhunder standalone. Neither was checked on a device.screen.height − innerHeight(portrait, standalone) back to the shell.Fix (PR #447)
home-screen.ts: two measures, and the taller one wins.screen.widthandscreen.heightdon't swap when the phone turns, so the side that matches the window's width says which is which.resizeas well as by the ResizeObserver, so it also catches the 342 ms settle and rotation.position: absolute), notfixed. The app's box is now measured to the real bottom.keyboard.svelte.ts: with the keyboard down, the bar rests on the app's bottom edge, not on the short visual viewport. With the keyboard up it is unchanged.fitHomeScreenstill returns early there.Tests
home-screen.spec.tshas a new short-window model: the window is one status bar shorter thanscreen.height, the page runs under the status bar, and there is a 34 px home indicator. That is what this phone does.The new tests check that the list's scroller, its glass, the backdrop, the body and the button reach the screen's bottom at 320/375/390/402, light and dark. They check that the note's bar rests 40 above the screen's bottom, and that under an opaque status bar the app stays at the window's height (no overshoot).
Run with
--no-depson chromium-390 and webkit-390: phone-edges, phone-bars, safe-areas, pwa, bar-*, home-screen, keyboard.None of these tests turn on the Home Screen path. The keyboard change only differs when the app is on the Home Screen.
Screenshots (WebKit and Chromium, 320/375/390/402, light and dark, before | after)
The "before" shots end at the bottom of the short window. A Playwright full-page shot can't show the strip below the window that the phone shows as the band. The "after" shots are full-page, and the app runs to the screen's bottom.
WebKit light:




WebKit dark:
Chromium light:
Chromium dark:
390 dark, before / after:
What emulation can't prove
screen.*values on this phone, and how the app behaves after rotation and after the keyboard closes.iPhone checklist (after PR #447 is deployed)
Home Screen app: close it fully (swipe it away) and open it again from the icon.
Safari tab (no change was intended, so check nothing regressed):
10. calternal.cloud in Safari, dark and light, on the Journal, All notes, a View, Places and a note: the bottom meets Safari's toolbar the way it did before, with no new band and nothing cut off.
11. In Safari, rotate the phone and open and close the keyboard in a note: the bar comes back down above the toolbar.
If 1 still shows a band, send a screenshot. It would also help to plug the phone into a Mac, open Safari → Develop → the iPhone → the Calternal app, and send what the console prints for
innerHeight,screen.heightandgetComputedStyle(document.documentElement).getPropertyValue('--vh').Checked in the iOS Simulator (harness #451: iPhone 18 Pro, iOS 27.0, the same major version as kayg's phone). It shows Safari tabs and the Home Screen app, light and dark. Fix: PR #455 (
issue/445-seamless, on top oftrain/2026-10-15n).Bottom (#447): in the Home Screen app the list, its glass, the backdrop and the + button reach the screen's bottom (874 of 874). This simulator does not shorten
innerHeight(874; onlysvhis 812). The band on kayg's phone is the shape of WebKit 301994, so only the phone can settle it for good.Top, the band kayg saw: on the glass screens (Places, Journal, All notes, a tag, Trash, search) the strip under the status bar was flatter and greyer than the glass below it. That is Δ13 to Δ17 between the status bar and 70-100 pt down, with a flat top half. The cause: WebKit blurs nothing above the screen's top, so the glass's blur mixes in the root's background there. A red root turns exactly that strip red. The root colour was worked out from the average of the built-in photo, not from the picture on screen. It now comes from the strip of the picture under the screen's top. After: Δ5 to Δ7, a smooth ramp (the photo's own gradient), no step above 1.
Also fixed: in Safari, Settings had a shadow line at the toolbar (a step of 13 to 20). Every phone list's scroller ran 110 pt (Home Screen) or 48 pt (Safari) past the screen's bottom. That was also the 320x568 failure in train n.
No flicker on route changes: a 60 fps recording of Journal → note → back → Places → Journal, in Safari and in the Home Screen app. The bar colour switches once per change (glass ↔ paper) and never passes through another value.
Columns: Home Screen light · Home Screen dark · Safari light · Safari dark. Rows: Places, Journal, All notes, #travel, Trash / note, Settings, Settings (appearance), search, sign-in. Sign-in is the note: the test server signs you in.
Before (origin/dev

499d1f8):After (#455):

Notes:
kayg tested the lab on a real iPhone (iOS 27 Safari):
Apply this combination to the app (#445) and to all mockups (chrome.html).
PR #497 (
issue/445-no-bleed, not merged). Simulator check (iPhone 18 Pro, iOS 27.0), devc82161d(before, B) against the branch (after, A).What the PR does. Phone frosted screens no longer use a full-screen live
backdrop-filter(it blurs pixels that are not there at the screen edge, and the old note top bar added a second blur+tint under the status bar). The picture is blurred once: a photo/upload in script on a small opaque copy (a CSSfilter: blur()on the big layer came out partly see-through in WebKit, which showed the flat colours under it as a hard step at mid-screen), the sky byfilteron its layer. The backdrop has 96px of spare picture past each edge. The screens only tint. Top (lab 15): solid fixed strip in the edge colour (background-color, safe-top + 12px, then a 28px fade, Safari only), and the note's top bar blurs by a tint-free ramp starting 8px inside the edge, shown only once text has scrolled under it. Bottom (lab 14): no strip and no blur; the strip under Safari's toolbar is the same blurred picture under the same tint.Not done: the document does not scroll yet. Lists still scroll inside their box (virtualised
.scroll). kayg's last ask (window scrolling on phones so rows pass under Safari's toolbar) is a separate change: the list scroller, FLIP, the push stack (list stays in flow, note fixed), scroll restore and many e2e specs depend on it. I stopped here rather than half-do it; it needs the device to confirm it first.Seams, simulator,
bands.py-style numbers (max over the 7 pages: Places, Journal, All notes, #travel, Trash, a note, Settings; gutter colour, top = status bar rows 8-50 against rows 70-100; foot = last 25pt against 90-120pt above it;dis the colour distance,stepthe biggest 1pt row step in the top/bottom 160pt):Reading it: in the simulator the dev top was already close for most pictures (it reproduces the band only in some, e.g. sky: 4.1 to 1.8 light and 2.8 to 1.3 dark; Settings/notes are paper and unchanged). No step above 2 anywhere after. The Safari
foot dis larger after on purpose (no solid strip: the bottom is the picture continuing under the glass toolbar, so it is no longer equal to the page above it). The Home Screen foot is the picture running under the home indicator (4.3 vs 7.1 seed dark).Scroll cost (script scrolling Journal for 4s, Home Screen app, simulator at 60Hz): before avg 16.74 ms, p95 17, max 33-34; after avg 16.74, p95 17, max 31. Same. This is the simulator, not the phone's GPU, so no per-frame blur saving can be claimed from it.
Tests (chromium-390 and webkit-390,
--no-deps: home-screen, phone-edges, phone-bars, safe-areas, pwa, glass): chromium 440 passed; webkit 439 passed, 1 timeout inpwa.spec.ts"nothing sits under the status bar" (30sscrollIntoViewIfNeededunder heavy host load; the same test passed in the previous full webkit run, 440/440, and my one-test rerun could not get a build slot in time). I updated two specs that encoded the old rule: a solid fixed layer on an edge must be the page colour (Safari 26+ reads it, #476) instead of "none allowed", and the frosted screens have no bottom-strip equality check (their last row must continue the row above it).Contact sheets (rows: before, after; columns: Places, Journal, All notes, #travel, Trash, note, Settings), seed photo backdrop:





Home Screen dark:
Home Screen light:
Safari tab dark:
Safari tab light:
Journal on sky, built-in photo, plain, pale upload (rows: light before, light after, dark before, dark after):
Journal, dark, top 300pt, before | after:
Still needs the real iPhone: whether Safari takes the new strip colour, that the toolbar glass looks right over the unblurred-free picture, and the blur ramp on a note. Two process notes: I ran one
pkill -f playwrightearly on that hit other agents' runs (my mistake, I only kill my own PIDs now), and the shared simulator was often driven by the lab agent, so every capture was validated and retried.Starting issue #445 research. Branch: none (research only). Base reference: issue/445-bottom-band checkout at
a6a2faedad. I am verifying iOS 26.x and 27 Safari tab and Home Screen behavior from WebKit, Apple, and reproducible site evidence. I will add findings as they are verified.Finding: Safari 26 edge tint is an implementation heuristic, not a published CSS contract. WebKit's source at 2026-09-22 checks viewport-constrained fixed/sticky candidates by hit-testing 4 CSS px inside an edge, using a 2 px strip; candidate width/height along the edge must be at least 90% of the viewport (up to 105% for an ordinary candidate), and each border-box dimension must exceed 10 px. It blends translucency under 0.75 alpha against the page background. A backdrop-filter candidate is marked as multiple colors; CSS gradients/images can fall through to rendered-pixel color sampling. Source:
github.com/WebKit/WebKit@d3afea7d89/Source/WebCore/page/LocalFrameView.cpp. A WebKit engineer's Bug 301756 explanation confirms the edge-extension purpose and that a non-fixed header does not trigger it: https://bugs.webkit.org/show_bug.cgi?id=301756 . Exact iOS 26.0/26.4/27 shipped thresholds and tab-layout differences are not officially documented.Finding: the background workaround's 26.4 cutoff has official support for the performance premise. WebKit says Safari 26.4 moved scroll-driven animations to the compositor thread, so scroll() and view() timelines remain smooth while the main thread is busy: https://webkit.org/blog/17862/webkit-features-for-safari-26-4/ . This supports using the supplied scroll-timeline path only when the threaded implementation is available; it does not itself establish Safari's obscured-inset geometry.
Finding: WebKit 318137@main (2026-07-29) added an iOS top system-background extension for obscured insets, conditional on no visible top fixed-color extension, and says it scrolls with document content. It is tied to Bug 317336 / rdar://177747987:
github.com/WebKit/WebKit@8b5cfad939. A later trunk change, 83f810@main (2026-10-10), removes the iOS top system-background extension; Bug 327043 / rdar://188210655:github.com/WebKit/WebKit@83f810390d. Safari 27.0's release notes date to 2026-09-17, so the October trunk follow-up is not evidence that released 27.0 contains the removal: https://webkit.org/blog/18325/webkit-features-for-safari-27-0/ . Public bug details for 317336 and 327043 were not retrievable; the WebKit commit logs expose the Radar IDs, not Radar contents.PWA and viewport finding:
viewport-fit=covermakes the page layout cover the screen;env(safe-area-inset-*)describes safe areas, not Safari's expanding or collapsing toolbar height. WebKit's old iPhone X guidance says to use those insets for important controls. Apple's archived iOS web-app docs sayblack-translucentlets standalone content extend behind the status bar, which then obscures some content. The docs are archived and I found no newer iOS 26/27 contract. Manifestbackground_coloris only a loading placeholder;theme_coloris app metadata, and neither is a supported way to tint Safari 26 tab chrome. Sources: https://webkit.org/blog/7929/designing-websites-for-iphone-x/ ; https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html ; https://www.w3.org/TR/appmanifest/ .Viewport and bottom-toolbar finding: W3C defines
lvhusing browser UI retracted,svhwith it expanded, anddvhas dynamic;dvhcan resize during scroll and UAs may overlay the keyboard without changing viewport units. WebKit 26.4 says scroll-driven animations run on the compositor thread. WebKit's iOS 26 bug discussion says fixedbottom:0is intentionally above Safari controls to avoid overlapping page controls; the fill is explicitly a heuristic. There is no documented webpage API for Safari's obscured toolbar inset. Sources: https://www.w3.org/TR/css-values-4/ ; https://webkit.org/blog/17862/webkit-features-for-safari-26-4/ ; https://bugs.webkit.org/show_bug.cgi?id=297779 .Research complete for issue #445. The full report is saved at
/home/kayg/Developer/calternal-research/safari-edges-2026-10-17.md(SHA-25608a69c6c08d9363863e6c08abbb864461c24963b6e5efb6099a7e5769449ee5a). It includes the 10-line TL;DR, decision table, top/bottom and tab/PWA recipes, quoted source lines, limits, and an iPhone checklist.Findings summary:
theme-color. Current WebKit source has a 10 CSS px minimum box dimension, 90–105% edge-length heuristics, a 2 px strip sampled 4 px inside, and alpha blending rules. These are source observations, not a public contract. https://bugs.webkit.org/show_bug.cgi?id=301756github.com/WebKit/WebKit@d3afea7d89/Source/WebCore/page/LocalFrameView.cppgithub.com/kaygdotorg/website@7e6400b38c/docs/performance.md (L60-L100)github.com/WebKit/WebKit@8b5cfad939github.com/WebKit/WebKit@83f810390dviewport-fit=coverand safe-area env values do not expose Safari toolbar size. Standalone PWA can useblack-translucentfor content behind the status bar; manifest colors remain metadata/loading colors. https://webkit.org/blog/7929/designing-websites-for-iphone-x/ https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html https://www.w3.org/TR/appmanifest/No code, branch, commit, PR, build, or device test was made for this research task.
Head SHA: none (research only; issue checkout base SHA
a6a2faedad460c5596b2a6abcdbae9898634afee).Gate output: Not run (research only).
New PR #521 replaces #497: the phone list pages now scroll the document in a Safari tab (one shared scroll adapter, as in the chrome mockup), plus the bottom-step fix. Simulator, Safari tab, seed photo, light (top row) and dark (bottom row); Places, Journal, All notes, #travel, Trash, a note, Settings. Rows now pass under Safari's glass toolbar; Back restores the scroll.
Tests: chromium-390 440, chromium-1440 6, webkit-1440 4, webkit-390 428 + 12 crashed phone-bars rerun alone 12/12. The 12 'bottom continues' failures on the train could not be reproduced in isolation; the cause is a half-finished fade on the frosted layers, now removed. Still needs the iPhone (see the PR).
kayg, 2026-10-17 (real iPhone, chrome.html round 5): "finally the bottom band is fixed! approved". The bottom edge is APPROVED: document scrolling plus the kayg.org-style counter-scrolled backdrop, gated to touch WebKit 26.4+, with standalone using black-translucent. The app (#521 successor) should match it exactly.
Still open: while scrolling, the top progressive blur leaves a small gap between itself and the top safe area, and content shows through crisp there (the clipped large title).
PR #528 replaces #521 (on train w, with #522's list chrome and windowing kept).
Scroll perf,
perf400/m.mjsscroll mode, 4x CPU, 390x844, 10k list, p95 frame time over 3 runs:So the target (p95 under 20 ms) is met for the page and backdrop, not with the pills' blur always on; the pills only blur while content is under them, and this test scrolls constantly.
main.content(the blur named in the brief) is Settings' desktop frame; it is not on the phone list path, so I left it. Reducing the pills' blur layers or baking them is the next step, and it changes the look, so I did not do it without a decision.Simulator: the shared simulator was busy with other agents this round, so I verified the pills and strip with a Chromium screenshot scrolled to 500 (strip 0-12, blur from 8, pills fixed), not in Safari.
Nightly full colour matrix failed at
c5b9a1bon: attachments-1gib$\n$\nattachments-1gib (cargo test, CALTERNAL_TEST_UPLOAD_MB=1024):$\n$\nerror: no test target named `attachments_crash` in `calternal` package help: available test targets: fix_tz_live notes_crash notes_crash_typing notes_live prefs_live search_live startup$\n$\nStarting issue #445 work on branch
issue/445-ios-lab, based onorigin/issue/469-chrome-mockup-5at6c66dc804cf5c817530f2ce743ced3d719c8b554. I will research the Safari behavior, build and test the iPhone lab, then deploy onlyioslab.htmland report findings.Source finding: WebKit caches the sampled edge color with the previous fixed element. In
LocalFrameView.cpp, the sampler reuses the prior color whenlastFixedContaineris the same element, so a CSS color change on that element can leave the browser extension stale.Page.cppalso gates top-edge updates after user interaction or scrolling unless an internal preference allows them; the iPhone default for that preference is enabled. I am treating same-element reuse as a testable explanation, not yet as the device result. Evidence: LocalFrameView sampler, Page update gate, iPhone default.Keyboard API finding: the W3C draft defines
keyboard-inset-*, and the CSS Viewport spec definesinteractive-widget=resizes-content, but WebKit still lists both implementation bugs as NEW (last updated September 2026). I will confirm the iOS 27 simulator’s actual env values and viewport changes before calling this a device result. Evidence: WebKit VirtualKeyboard API bug #230225, WebKit interactive-widget bug #259770, W3C VirtualKeyboard API draft, CSS Viewport interactive-widget spec.Additional source finding for the top edge: current WebKit says fixed and sticky color extensions update at most once per rendering update, and only after geometry changes or paint into a viewport-constrained layer. The sampler can also reuse the previous edge color for the same fixed container. That makes replacing the strip or removing/re-adding it the strongest lab invalidation probes; restyling, a layout read, pushState, visibilitychange, or theme-color are not guaranteed triggers. Sources:
github.com/WebKit/WebKit@2c0658bf3bandgithub.com/WebKit/WebKit@d3afea7d89/Source/WebCore/page/LocalFrameView.cpp (L2685-L2715). The iOS 27.0 simulator predates commit 323309 (2026-10-10), which removes the native top system-background extension on trunk; public 27.x inclusion is not established by release notes:github.com/WebKit/WebKit@83f810390d.Simulator evidence for keyboard finding: iPhone 18 Pro simulator, iOS 27.0, Safari tab. With a text field tapped, the screenshot shows Safari’s native ˄ / ˅ / ✓ row above the software keyboard. The page readout is innerHeight=714, visualViewport.height=383.98, offsetTop=164.66 (bottom=548.64), 100dvh=714; safe-area env values are 0px, keyboard-inset env values use the page’s 911–915px fallbacks, and navigator.virtualKeyboard is absent. The native row has no DOM rectangle. This is simulator evidence for the Safari tab only; it does not establish a physical-device result or Home Screen behavior. The screenshot and readout are in the external scratchpad, not the repo.
More simulator keyboard evidence: the live vv variant (same Safari tab, iOS 27.0) now has the field focused and native ˄ / ˅ / ✓ row visible. This pass read innerHeight=714, visualViewport.height=383.98, offsetTop=79.66, bottom=463.64, with the keyboard inset env fallbacks still active. The screenshot appears to leave a small gap above the assistant row; this simulator run does not reproduce kayg’s real-iPhone overlap consistently. A separate focused pass had offsetTop=164.66, showing the pan/scroll-dependent placement. I’m treating these as simulator-specific measurements and will keep the physical-device check in the checklist.
The lab’s vv54 candidate was also focused on the iOS 27.0 simulator. Viewport metrics matched the vv pass (innerHeight=714, visualViewport 383.98 high at offsetTop=79.66, bottom=463.64); env keyboard values still fell back. By eye, vv54 moved the fake bar roughly 54 CSS px farther above Safari’s native row than vv. This is only a visual simulator estimate and can be too high on a different keyboard/layout; the lab keeps both choices available for kayg’s physical-device comparison.
Interactive-widget probe on the same iOS 27.0 Safari simulator tab: the lab requested interactive-widget=resizes-content, but while the field was focused the viewport stayed at innerHeight=714 and visualViewport.height=383.98/offsetTop=79.66; 100dvh remained 714, keyboard-inset env() values still used the fallback numbers, and navigator.virtualKeyboard was absent. This supports the WebKit open-bug/source finding for this simulator build; the Home Screen mode comparison is still underway.
Home Screen simulator evidence: I added the lab as “Edge Lab 445”, launched its icon, and confirmed navigator.standalone=true / mode=Home Screen standalone. After tapping the field, the screenshot also shows the native ˄ / ˅ / ✓ form row above the keyboard. Readout: innerHeight=874; visualViewport.height=477.98, offsetTop=32.66, bottom=510.64; safe-area top/bottom=62px/34px; 100dvh=874 and 100svh=812; keyboard-inset env values still fall back and navigator.virtualKeyboard is absent. The vv toolbar appeared above the row by eye in this simulator pass. Safari tab and standalone differ substantially in innerHeight, safe-area values, and viewport offset, so one tab-derived constant is not transferable without kayg’s device check.
Deployment drift note from the 10:19 follow-up hash check: the lab is still 9a53e6bc0a88976e97519db9bf73fa89e433201f054dcd501b0821b44528788c and returns HTTP 200. Compared with this job’s 07:48 backup, later staging work added assets/index-BBP5SZL3.css, assets/index-BOKrowfV.js, assets/index-k9mj2Dz4.js and changed links.html (59b5d715… → 6c398042…). Their mtimes are 09:59–10:10, after our deployment. I left these shared preview changes untouched; the immediate post-deploy check had reported all other hashes unchanged. Staging remains at 22% disk.
Finished issue #445. The lab is live at https://preview.calternal.cloud/ioslab.html. The research report is at /home/kayg/Developer/calternal-research/ios-edges-2026-10-18.md.
Top-color variants:
none, restyle, layout, new, detach, nudge, push, theme, visibility, html, body, opacity75, opacity90, opacity99, opacity100, bg75, bg90, bg99, navigation
Keyboard variants:
fixed, vv, vv54, env, dvh, interactive
The simulator screenshots for top restyle, Safari tab vv/vv54, and Home Screen keyboard are attached to the relevant findings above. The device is iOS 27.0 only; the native top tint still needs kayg’s physical-device confirmation, and the vv54 toolbar offset is a comparison candidate rather than a guaranteed fix.
Gate output:
BRANCH=issue/445-ios-lab
HEAD=66805118e32c12dab409b762e8d8d9307e1eea25
REMOTE_BRANCH_HEAD=66805118e32c12dab409b762e8d8d9307e1eea25
WORKTREE=CLEAN
DIFF_CHECK=PASS
JS_PARSE=PASS
VARIANT_LINKS=top:19,keyboard:6
PREVIEW_HTTP=200 text/html; charset=utf-8 22764
LOCAL_SHA=9a53e6bc0a88976e97519db9bf73fa89e433201f054dcd501b0821b44528788c
FETCHED_PREVIEW_SHA=9a53e6bc0a88976e97519db9bf73fa89e433201f054dcd501b0821b44528788c
REMOTE_FILE_SHA=9a53e6bc0a88976e97519db9bf73fa89e433201f054dcd501b0821b44528788c
PREVIEW_CONTENT_MATCH=PASS
DEPLOY_TIME_OTHER_PAGE_HASHES=PASS
LATER_SHARED_PREVIEW_DRIFT=links.html,+assets/index-BBP5SZL3.css,+assets/index-BOKrowfV.js,+assets/index-k9mj2Dz4.js (mtimes 09:59-10:10 after 07:48 deploy)
STAGING_DISK=/dev/sda1 102996088 21465436 77295220 22% /
SIM_IOS27_TAB=innerHeight:714,vvHeight:383.98,offsetTop:79.66,bottom:463.64
SIM_IOS27_HOMESCREEN=standalone:true,innerHeight:874,vvHeight:477.98,offsetTop:32.66,bottom:510.64,safeTopBottom:62/34
SIM_KEYBOARD_APIS=VirtualKeyboard:absent,keyboard-env:fallback,interactive-widget:no-resize
Results from kayg's iPhone (iOS 27, Safari tab), 2026-10-18:
Next, chrome.html adopts both fixes; they go into the app with port slice 2.
chrome.html (https://preview.calternal.cloud/chrome.html, commit
c15d912on issue/469-chrome-mockup-5) now uses the lab's two confirmed fixes: top status-bar strip = a new element per screen change (lab 'Replace with a new element'), and the note/block bar lift = lab 'vv' (innerHeight - (vv.offsetTop + vv.height) - 14 + 8, no form-bar estimate). Also removed the 54 pt form-bar allowance from the links picker and the caret room. Details on #469. Home Screen app uses the same code paths, still untested on the device.Culprit found: the block hover pill (
.cm-block-pill) sticks out past the editor scroller's right edge on a phone-width window (ends at x=437 in a 390px scroller). That made.cm-scrollerscroll sideways by 47px on a mouse/trackpad swipe, which shifted the note text left. The page root itself did not scroll. Fix: clamp the pill inside the scroller, andoverflow-x: clipon the scroller and on the document-scroll root. PR: #578Keyboard LAB round 2: real conditions, and why chrome.html's bar is unreliable. Lab: https://preview.calternal.cloud/ioslab.html (first card, "0 · Real keyboard scenarios"). Branch
issue/445-ios-lab. Research:calternal-research/ios-keyboard-lab-2026-10-18.md.chrome.htmluntouched.1. Diff: lab
vvvariant vskeyboard-guard.tsonissue/469-chrome-mockup-5The arithmetic is the same (
lift = below - 14 + 8,below = innerHeight - (offsetTop + height), only whenbelow > 80). Everything around it differs:resizeandscroll, visualViewportresize/scroll,focusin, 300 ms afterfocusout, and every 700 ms (setInterval). The guard runs only on visualViewportresize/scroll,selectionchange,input,focusin,focusout(+0 ms), each as onerequestAnimationFrame, and never looks again. A number that arrives late is never corrected. This is WebKit 265578 (visual viewport resized only at the end of the keyboard animation when Safari's toolbar is expanded, at once when it is collapsed: an unscrolled note and a scrolled note differ) and 237851 (offsetTop0 inside the resize handler, right 50 ms later). No windowresize/scrolllistener at all in the guard.innerHeightis not wherebottomis. Both useinnerHeight. In the iOS 27 simulator, WITH the keyboard up,innerHeightwas 703 / 676 whilebottom: 0of a fixed box stayed at 714 (documentElement.clientHeight): the error of the formula is exactly that difference (11 px, 38 px, 0 in a scrolled note). On kayg's phone the sign can be the other way (WebKit 297779: a persistent 24 px mismatchinnerHeightvsvisualViewport.heighton iOS 26; Safari 26 putsbottom: 0above its controls on purpose). The lab page happened to have 0 here.bottom. Lab:bottom: 14px. Chrome:calc(max(env(safe-area-inset-bottom), 8px) + 6px), and the formula hard-codes 14. If the bottom safe area is not 0 while the keyboard is up (34 in the Home Screen app, and it may change with Safari's toolbar state; not measured), the bar ismax(sb,8)+6-14too high (26 px at 34: the "too high" photo has that sign).transformwith no transition. Chrome:translatewith a 380 mscubic-bezier(.32,.72,0,1)transition, switched off only for 180 ms after a visualViewportscroll. At rest it is the same box; while numbers are still changing it chases a moving target.--liftis dropped as soon as no field is focused (setRoom:typingIn(activeElement)false removes--lift,--vv-top,--kb-room). Focus moving block to block, a toolbar tap or a handle drag lowers the bar and raises it again. The lab never removed it.<input>. Chrome: document scrolling, a long CodeMirror note (CM scrolls the window itself to reveal the caret after focus and after every selection change, with no visualViewport event for the final position), an empty note, and--kb-roompadding that grows the document while the keyboard animates, so iOS scrolls again andoffsetTopmoves again.interactive-widget=resizes-content; the lab did not. Safari ignores it (bugs 259770, 230225 still NEW), but it is a difference.--liftis a custom property on:root, so every change restyles the whole page; the mic follows with its own transition.2. What the lab now has
https://preview.calternal.cloud/ioslab.html?scn=a|b|c|d&place=top|probe|bottom|transform|chrome&refresh=loop|poll|events&ed=cm|ce&room=0|1&iw=1|0. Scenario a: long CodeMirror note, document scrolling, scrolled so the yellow TAP line is at 72 % of the screen. b: empty note at the top. c: inputs. d: a with the caret-room padding (--kb-room, the guard'ssetRoomcopied). Placements:top(top = offsetTop + height - barH - 8),probe(bottom = fixedBottom0 - vvBottom + 8,fixedBottom0measured from a fixed probe, notinnerHeight),bottom(innerHeight),transform(labvv),chrome(the guard as shipped, same events, same spring). Refresh:loop(events + a frame loop 700 ms after anything moves),poll(700 ms),events(as shipped).Live HUD at the top: innerHeight, vv.height, offsetTop, vvBottom, scrollY, pageTop,
documentElement.clientHeight,bottom: 0position, safe-area bottom,--lift, the bar's rect, the gap, and a verdict TOO HIGH / TOO LOW in px. A red line sits at the visual viewport bottom, a dashed blue line at the target (8 px above it). A timeline of the last focus and blur (every 70 ms) is under the page in the panel. Note: on iOSgetBoundingClientRect()of a fixed box is shifted byoffsetTopagainst itstop(shift 11 with offsetTop 10.7, 136 with 136); the HUD corrects for it with a fixed probe and shows the shift.3. Checked
iOS 27.0 simulator (it DOES show the software keyboard, ˄˅✓ row and URL pill with a real tap; no toggle was needed). Error of the bar's bottom against the target, px (- too low), 21 real-tap runs, Safari toolbar expanded:
The shipped formula puts the bar UNDER the ˄˅✓ row in the empty note, in the simulator too (the "too low" photo).


topandprobewere exact in all 20 runs. The simulator did not reproduce the "too high" photo, and it has a URL pill between the visual viewport bottom and the ˄˅✓ row (~42 pt) that your phone's photos do not show: only the phone says where "just above the row" is.Left: chrome as shipped, empty note, 38 px too low. Right:
top, same note.Playwright WebKit with a faked
visualViewport/innerHeight(logic only): innerHeight 45 above the anchor: top 0, probe 0, bottom/transform/chrome +45; bottom safe area 34: only chrome is off (+26); a late number with no event:eventsstays 120 px wrong,loopis right at once,pollis not there after 400 ms.4. For #469 (not done here, chrome.html is another agent's)
Place the bar with
top(orbottomfrom a measuredfixed bottom:0probe), not frominnerHeightand a constant 14; re-place for ~700 ms after every focus, blur, visualViewport and window event. Two lines:bar.top = vv.offsetTop + vv.height - barH - 8and a frame loop. Phone check below decides.5. Phone checklist for kayg (2 minutes)
Base: https://preview.calternal.cloud/ioslab.html. For each: bar just above the ˄˅✓ row? yes / too high / too low (a screenshot with the HUD at the top is enough).
?scn=a&place=top&refresh=loop: scroll the page a little with your FINGER (Safari's toolbar shrinks), tap the yellow TAP THIS LINE.?scn=a&place=probe&refresh=loop: the same.?scn=b&place=top&refresh=loop: the empty note, tap below the title (the photo that was too high).?scn=b&place=chrome&refresh=events: the shipped formula in that note, for the HUD numbers.?scn=c&place=top&refresh=loop: the old input case, as a sanity check. (If 1 or 3 is wrong, the same note withplace=bottom/refresh=pollis one tap in the panel.)Keyboard LAB round 3: caret visibility (kayg: placement is solved, the caret was under the bar). Lab: https://preview.calternal.cloud/ioslab.html. Branch
issue/445-ios-lab, pushed. Research:calternal-research/ios-keyboard-lab-2026-10-18.md(section "Round 3").What was added
follow=on every scenario (a-d), defaultboth, one tap in the panel:cm: CodeMirrorEditorView.scrollMargins.bottom= distance from the visual viewport bottom up to the bar's top (read from the bar's real rect) + 12 px, recomputed in the frame loop; when it, the visual viewport or the caret changes the lab re-dispatchesEditorView.scrollIntoView(head, {y: "nearest"}). It is NOTbar + gap + (layout bottom - vv bottom): CodeMirror'swindowRectmeasures the caret against0 .. visualViewport.height(installed 6.43.14), so the keyboard is already out; adding the layout-minus-vv term would count it twice.manual: while the loop runs, measure the caret (coordsAtPos(head), or the selection rect); if its bottom is below bar top - 12 px,window.scrollByby the difference; if above vv top + 8, scroll up. It waits until the page has stood still for 2 frames and the keyboard/bar for 3 (acting during the keyboard animation overshot by 200+ px).both: cm plus manual.none: as before.touchstart/touchmove, resumes 120 ms aftertouchend.ioslab.htmlwas redeployed.A second bug in the shipped guard (found on the way)
below = innerHeight - (offsetTop + height)with the> 80gate: when iOS pans the visual viewport down to show the caret,offsetTop + heightreachesinnerHeightwith the keyboard fully up (simulator: offsetTop 303 + height 411 = 714).belowis then 0 to 80, the guard drops--liftto 0 and the bar is left at rest, up to 74 px too LOW (logic model, offsetTop 240: top/probe/bottom/transform 0, chrome -54, 6 px at a full pan). That is the "bar overlaps the ˄˅✓ row after the page scrolled to the caret" photo. The keyboard's height isinnerHeight - vv.height(303 in every state), independent of the pan; the lab uses it by default (gate=shippedbrings the old one back).iOS 27.0 simulator, real taps,
place=top&refresh=loopCaret bottom against the bar top, px (+ above the bar, UNDER = below it). Tap on the yellow TAP line (it sits under the keyboard's future position), then 3 real Return taps, then 8 more lines (a CodeMirror transaction with
scrollIntoViewwhile the real keyboard is up; XCUITesttypeTexttyped nothing, so only the Returns are real key presses). b is the empty note, lines typed at its end.With


nonethe caret ends under the bar, as on the phone; with every follow option it never did.cmis the tightest (the caret ends 17 px above the bar and stays);manuallets iOS pan first and then corrects (13 px);bothis the safest and shows the largest first gap because iOS and CodeMirror have both moved it before the lab settles.Left:
follow=none, the caret (green line) under the bar. Right:follow=cm, same tap.Phone checklist (3 steps, 2 minutes)
Placement stays
top+loop. In each step do scenario a (tap the yellow TAP THIS LINE, then press Return about 10 times) and scenario b (tap the empty note, press Return about 15 times) and answer: is the cursor always visible above our bar? yes / under the bar (when) / jumps around. A screenshot with the readout at the top helps.Focus-hop round (lab commit
79db0dc, branchissue/445-ios-lab)Lab (deployed, only ioslab.html changed, other files' hashes unchanged, backup
site.bak-445lab3-*):scn=f(3 inputs + 1 contenteditable, long scrolled page, same HUD, red vv line): https://preview.calternal.cloud/ioslab.html?scn=f&place=top&refresh=loopvv.height,vv.offsetTop,scrollY, bar rect per frame for 1 s after everyfocusin(panel "Hop log" at the bottom of f, and under the readout on the plain page;window.__hops).extra=48lifts the bar 48 px more.follow=noneso the page adds no scroll of its own on a field switch; iOS does the scroll.Simulator (iOS 27.0, real XCUITest taps, hop 1-2-1-2... then random), overlap = bar bottom more than 6 px below target (final frame at 1 s), counted from the hop log and checked on screenshots
kb=vv, plain page)place=top&refresh=loop, scn f, 3 inputs + editable)extra=48Root cause in the simulator (old path, tab), from the hop log: hop 2 had vv top 330, height 384, scrollY 1303 (vv bottom 714 = layout bottom, formula gap fine). Hop 3 (back to field 1): iOS scrolled the page up 80 px by itself, vv top 250, scrollY 1223, height unchanged, and every frame of that 1 s was identical. The old rule
covered = innerHeight - (vv.offsetTop + vv.height)is exactly 80 there, and its gate iscovered > 80, so the lift was dropped to 0 and the bar stayed at the layout bottom (bar bottom 700 in layout px, vv bottom 634): on top of the ˄˅✓ row (old-tab/h03.png). So it is not a stale vv and not a missing event: values were stable for the whole second, the formula only looks at how far iOS panned. The next hop (pan back to 0) "fixes" itself, so it flip-flops with every hop. kayg's observation that iOS's own scroll is always right matches: the page scroll is fine, the bar rule reads the pan wrongly. The new rule never uses the pan: gateinnerHeight - vv.height > 80,top = vv.offsetTop + vv.height - barH - gap, re-placed on every frame for 900 ms after each focusin / vv scroll / vv resize / scroll, so each of the iOS pans (vv top 180 / 250 / 320 in scn f) was followed the same frame (worst error 0 px in every frame of every hop).NOT reproduced: the Home Screen failure itself. The simulator's old path is fine in standalone (keyboard 396 px, covered always > 80 and the ˄˅✓ row sits below vv bottom). In kayg's phone screenshot (innerHeight 956, vv height 541, 155.webp) the bar bottom sits exactly where the old formula puts it (about 8 px above vv bottom) and the ˄˅✓ row is INSIDE the last ~45 pt of vv. So on the device, at the 3rd focus, vv itself seems to include the row, which the simulator never shows. If that is so the new rule would overlap too, and no re-read of vv can fix it. That needs the phone hop log (checklist below).
extra=48is the quick test of that theory.Screenshots (kept in the scratchpad, not in the repo):
.../scratchpad/a445h/shots/old-tab/h03.png(overlap),old-tab/h04.png(fine),new-tab/h03.png,new-tab2/hNN.png,new-home2/h03.png,old-home2/hNN.png,extra-tab/hNN.png; hop logs in eachres.json.Device checklist (3 steps)
https://preview.calternal.cloud/ioslab.html?scn=f&place=top&refresh=loop(type the full URL, the Home Screen keeps whatever URL is open), Share > Add to Home Screen > Open as Web App on > Add. Start it from the new icon.kayg verified on a real iPhone (2026-10-19 ~10:00 IST): with the lab's default settings (scn=f, place=top, refresh=loop) the bar can no longer be made to overlap the iOS ˄˅✓ row when hopping between fields. New path confirmed: show when innerHeight − visualViewport.height > 80, place at vv.offsetTop + vv.height − bar − gap, frame loop re-armed on focusin / vv scroll+resize / scroll. Next: port into the app's keyboard bar.
Landed in train AH, #616.
Nightly full colour matrix failed at
a779a46on: webkit-1440$\n$\nwebkit-1440: $\n$\n$\n$\n$\nkayg referenced this issue2026-11-05 23:21:12 +00:00