iPhone: flat band at the bottom of the Journal list in prod (after #405) #445

Open
opened 2026-10-15 16:40:03 +00:00 by kayg · 35 comments
Owner

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:

  • Research how iOS 26 standalone and Safari size the layout viewport and the bottom safe area. Cite your sources.
  • Find why the list (and its background) stops short.
  • Fix it so the list scrolls to the bottom edge under the home indicator and the background fills it, in both the Home Screen app and Safari.
  • Hand kayg a device checklist; emulation cannot prove this.
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: - Research how iOS 26 standalone and Safari size the layout viewport and the bottom safe area. Cite your sources. - Find why the list (and its background) stops short. - Fix it so the list scrolls to the bottom edge under the home indicator and the background fills it, in both the Home Screen app and Safari. - Hand kayg a device checklist; emulation cannot prove this.
Author
Owner

kayg's screenshot from the device (prod at 499d1f8, dark, Home Screen app):

band-prod

What the screenshot shows

I measured it in pixels. Its aspect ratio fits a 956 pt Pro Max:

  • The band is 62 pt tall, the height of the status bar. The list ends at 894 pt.
  • The new-note button is 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 only svh/dvh/innerHeight.
  • The header clears a 62 pt top safe area, so the page does run under the status bar (black-translucent is working).
  • The band is flat and matches the page's background colour (the body background spreads to the whole page). So the page is painted down there, but nothing in the app reaches it.

Cause

#405 assumed that position: fixed boxes reach the real bottom. That holds on some releases but not on this one. fitHomeScreen measures a zero-width fixed box, so it measured the short height and set both --vh and --screen-h to it. Before #405, --screen-h was 100lvh, 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

  • WebKit 301994: iOS 26.1+ Home Screen apps. One report has screen.height 874 and innerHeight 812 (62 short). Still reproduces on 26.5.2 and on the iOS 27 beta (confirmed 2026-08-04). Reopened, rdar://184081721. In another shape of the same bug the top bar is opaque and the insets are 0. There svh/dvh are right and vh/lvh overshoot.
  • WebKit 301108: REGRESSION (iOS 26), viewport-fit=cover doesn't make the viewport match the screen. Open.
  • clchrf/money #1: iOS 26.5 simulator, 17 Pro, Home Screen. innerHeight is 874 at 0 ms, then 812 at 342 ms, together with dvh/svh. vh/lvh stay 874. Sizing the shell with lvh put the tab bar at the real bottom. That was in the simulator, not on a phone.
  • tpdbf5509/busssss #23: on a device, innerHeight, visualViewport.height, 100vh/dvh, clientHeight and a fixed bottom:0 box 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).
  • endziu/0xchat #135 and odysseus #6396: standalone with viewport-fit=cover + black-translucent is short by the top inset. Both use 100lvh under standalone. Neither was checked on a device.
  • anderboski/ander-gym #68: adds screen.height − innerHeight (portrait, standalone) back to the shell.
  • Apple forums 799216: Safari 26.1 fixed a bottom gap for viewport-sized fixed containers in Safari tabs. The Home Screen bug came back later (301994). Apple forums 798014: safe areas don't update after rotation until the app is backgrounded (UIKit, iOS 26.3), so rotation goes on the checklist.

Fix (PR #447)

  • home-screen.ts: two measures, and the taller one wins.
    • The fixed box, as in #405.
    • The screen's own height, counted when the page runs under the status bar (top safe area > 0) or the phone is on its side, and the window is the screen's full width. screen.width and screen.height don't swap when the phone turns, so the side that matches the window's width says which is which.
    • With an opaque status bar (no top safe area, the 301994 shape), the screen's height doesn't count, so the app never grows past what you can see.
    • An iPad window narrower than the screen keeps the fixed box.
    • It is re-measured on resize as well as by the ResizeObserver, so it also catches the 342 ms settle and rotation.
  • On the Home Screen, the new-note button and the phone bar sit in the app's box (position: absolute), not fixed. 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.
  • Safari tabs, Android and desktop: no change. fitHomeScreen still returns early there.
  • No gradients, no new colours, no extra work per frame.

Tests

home-screen.spec.ts has a new short-window model: the window is one status bar shorter than screen.height, the page runs under the status bar, and there is a 34 px home indicator. That is what this phone does.

stack bottom button bottom result
before, 402x874 812 760 (52 above 812, same as the device) 12 of 13 new tests fail
after, 402x874 874 822 13/13 pass on chromium-390 and webkit-390

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-deps on chromium-390 and webkit-390: phone-edges, phone-bars, safe-areas, pwa, bar-*, home-screen, keyboard.

  • chromium-390: 466 passed. One phone-bars Settings case failed, then passed 48/48 alone.
  • webkit-390: 462 passed. bar-focus, bar-taps and keyboard failed in a run that overlapped another run on the shared host. They passed alone (bar-taps and keyboard 7/7, bar-focus 2/2).

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

  • Whether iOS paints boxes below its short viewport. The band is the page's own background, so the page is painted there, which points to yes. One device report (busssss #23) says a taller box still ended at the short line. If the band stays after this PR, that is why. The next step would then be to fill the strip with the backdrop through the page background, since that already paints there.
  • Which status-bar shape a given iOS build uses, the real 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.

  1. Dark, Journal: scroll to the end. The rows scroll under the home indicator to the very bottom edge, with no flat band, and the backdrop and glass reach the bottom.
  2. The + button sits just above the home indicator, about the same distance as on the right edge, and not about 60 pt higher.
  3. Light, Journal: same as 1 and 2.
  4. All notes, then a View list, then Places (the first screen): same as 1, in dark and in light.
  5. Open a note: the paper reaches the bottom and the bar rests just above the home indicator, not about 60 pt up.
  6. In the note, tap into the text. The keyboard opens and the bar sits on it. Close the keyboard (✓ or tap outside): the bar goes back down to just above the home indicator, and the list or note still reaches the bottom with no band. Do this twice.
  7. Turn the phone to landscape on the Journal list and on a note: no band at the bottom or the sides. Turn it back to portrait: no band, and the + button is back above the home indicator.
  8. Leave the app (go Home) and come back after a few seconds: still no band.
  9. Filter on the Journal: type a few letters, then close the keyboard. The list still reaches the bottom.

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.height and getComputedStyle(document.documentElement).getPropertyValue('--vh').

kayg's screenshot from the device (prod at 499d1f8, dark, Home Screen app): ![band-prod](https://git.kayg.org/attachments/b911faca-2bcd-4d63-8b97-d0a0d685f62f) ## What the screenshot shows I measured it in pixels. Its aspect ratio fits a 956 pt Pro Max: - The band is **62 pt** tall, the height of the status bar. The list ends at 894 pt. - The **new-note button** is `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 only `svh`/`dvh`/`innerHeight`. - The header clears a 62 pt top safe area, so the page does run under the status bar (`black-translucent` is working). - The band is flat and matches the page's background colour (the `body` background spreads to the whole page). So the page is painted down there, but nothing in the app reaches it. ## Cause #405 assumed that `position: fixed` boxes reach the real bottom. That holds on some releases but not on this one. `fitHomeScreen` measures a zero-width fixed box, so it measured the short height and set **both** `--vh` and `--screen-h` to it. Before #405, `--screen-h` was `100lvh`, 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 - [WebKit 301994](https://bugs.webkit.org/show_bug.cgi?id=301994): iOS 26.1+ Home Screen apps. One report has screen.height 874 and innerHeight 812 (62 short). Still reproduces on 26.5.2 and on the iOS 27 beta (confirmed 2026-08-04). Reopened, rdar://184081721. In another shape of the same bug the top bar is opaque and the insets are 0. There `svh`/`dvh` are right and `vh`/`lvh` overshoot. - [WebKit 301108](https://bugs.webkit.org/show_bug.cgi?id=301108): REGRESSION (iOS 26), `viewport-fit=cover` doesn't make the viewport match the screen. Open. - [clchrf/money #1](https://github.com/clchrf/money/pull/1): iOS 26.5 simulator, 17 Pro, Home Screen. `innerHeight` is 874 at 0 ms, then **812 at 342 ms**, together with `dvh`/`svh`. `vh`/`lvh` stay 874. Sizing the shell with `lvh` put the tab bar at the real bottom. That was in the simulator, not on a phone. - [tpdbf5509/busssss #23](https://github.com/tpdbf5509/busssss/pull/23): on a device, `innerHeight`, `visualViewport.height`, `100vh`/`dvh`, `clientHeight` and **a fixed `bottom:0` box** 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). - [endziu/0xchat #135](https://github.com/endziu/0xchat/pull/135) and [odysseus #6396](https://github.com/odysseus-dev/odysseus/pull/6396): standalone with `viewport-fit=cover` + `black-translucent` is short by the top inset. Both use `100lvh` under standalone. Neither was checked on a device. - [anderboski/ander-gym #68](https://github.com/anderboski/ander-gym/pull/68): adds `screen.height − innerHeight` (portrait, standalone) back to the shell. - [Apple forums 799216](https://developer.apple.com/forums/thread/799216): Safari 26.1 fixed a bottom gap for viewport-sized fixed containers in Safari tabs. The Home Screen bug came back later (301994). [Apple forums 798014](https://developer.apple.com/forums/thread/798014): safe areas don't update after rotation until the app is backgrounded (UIKit, iOS 26.3), so rotation goes on the checklist. ## Fix (PR #447) - `home-screen.ts`: two measures, and the taller one wins. - The fixed box, as in #405. - The **screen's own height**, counted when the page runs under the status bar (top safe area > 0) or the phone is on its side, and the window is the screen's full width. `screen.width` and `screen.height` don't swap when the phone turns, so the side that matches the window's width says which is which. - With an opaque status bar (no top safe area, the 301994 shape), the screen's height doesn't count, so the app never grows past what you can see. - An iPad window narrower than the screen keeps the fixed box. - It is re-measured on `resize` as well as by the ResizeObserver, so it also catches the 342 ms settle and rotation. - On the Home Screen, the **new-note button** and the **phone bar** sit in the app's box (`position: absolute`), not `fixed`. 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. - Safari tabs, Android and desktop: no change. `fitHomeScreen` still returns early there. - No gradients, no new colours, no extra work per frame. ## Tests `home-screen.spec.ts` has a new short-window model: the window is one status bar shorter than `screen.height`, the page runs under the status bar, and there is a 34 px home indicator. That is what this phone does. | | stack bottom | button bottom | result | |---|---|---|---| | before, 402x874 | 812 | 760 (52 above 812, same as the device) | 12 of 13 new tests fail | | after, 402x874 | 874 | 822 | 13/13 pass on chromium-390 and webkit-390 | 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-deps` on chromium-390 and webkit-390: phone-edges, phone-bars, safe-areas, pwa, bar-*, home-screen, keyboard. - chromium-390: 466 passed. One phone-bars Settings case failed, then passed 48/48 alone. - webkit-390: 462 passed. bar-focus, bar-taps and keyboard failed in a run that overlapped another run on the shared host. They passed alone (bar-taps and keyboard 7/7, bar-focus 2/2). 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: ![](https://git.kayg.org/attachments/87f6cf67-37eb-42f6-b833-a0c31c46ad23) WebKit dark: ![](https://git.kayg.org/attachments/c88ad631-95ea-4d86-950f-2caa0d350ed7) Chromium light: ![](https://git.kayg.org/attachments/21ac064d-648a-4bd5-a4c8-42589c9289c6) Chromium dark: ![](https://git.kayg.org/attachments/bcd0dfb9-8b73-48f1-9fa5-3bc6f207c43a) 390 dark, before / after: ![](https://git.kayg.org/attachments/98bf6344-a308-4704-bdd0-e87d1ae33e35) ![](https://git.kayg.org/attachments/7fc157d3-7532-48a8-aaa3-7b6cb24c8da0) ## What emulation can't prove - **Whether iOS paints boxes below its short viewport.** The band is the page's own background, so the page is painted there, which points to yes. One device report (busssss #23) says a taller box still ended at the short line. If the band stays after this PR, that is why. The next step would then be to fill the strip with the backdrop through the page background, since that already paints there. - Which status-bar shape a given iOS build uses, the real `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. 1. Dark, Journal: scroll to the end. The rows scroll under the home indicator to the very bottom edge, with no flat band, and the backdrop and glass reach the bottom. 2. The + button sits just above the home indicator, about the same distance as on the right edge, and not about 60 pt higher. 3. Light, Journal: same as 1 and 2. 4. All notes, then a View list, then Places (the first screen): same as 1, in dark and in light. 5. Open a note: the paper reaches the bottom and the bar rests just above the home indicator, not about 60 pt up. 6. In the note, tap into the text. The keyboard opens and the bar sits on it. Close the keyboard (✓ or tap outside): the bar goes back down to just above the home indicator, and the list or note still reaches the bottom with no band. Do this twice. 7. Turn the phone to landscape on the Journal list and on a note: no band at the bottom or the sides. Turn it back to portrait: no band, and the + button is back above the home indicator. 8. Leave the app (go Home) and come back after a few seconds: still no band. 9. Filter on the Journal: type a few letters, then close the keyboard. The list still reaches the bottom. 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.height` and `getComputedStyle(document.documentElement).getPropertyValue('--vh')`.
Author
Owner

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 of train/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; only svh is 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:

  • The "before" dark columns of the first capture had the search palette left open. These sheets are from a clean rerun.
  • Search in a Safari tab shows the edit bar over Safari's toolbar. The simulator has no software keyboard here (the headless simulator acts as if a hardware keyboard is connected), so the bar has nothing to sit on. Check this on the phone.
  • Not done in the simulator yet: the keyboard up and down, and landscape.
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 of `train/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; only `svh` is 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):** ![](https://git.kayg.org/attachments/bcc253fe-a9eb-49eb-a57a-1b587b64a6a9) ![](https://git.kayg.org/attachments/d3b30e92-a03e-439b-bb5b-14448f3454c0) **After (#455):** ![](https://git.kayg.org/attachments/cd52a0b1-99c3-4815-ac46-328f733b8ce2) ![](https://git.kayg.org/attachments/fd96868a-d1cc-4935-b819-5a39aa88cb56) Notes: - The "before" dark columns of the first capture had the search palette left open. These sheets are from a clean rerun. - Search in a Safari tab shows the edit bar over Safari's toolbar. The simulator has no software keyboard here (the headless simulator acts as if a hardware keyboard is connected), so the bar has nothing to sit on. Check this on the phone. - Not done in the simulator yet: the keyboard up and down, and landscape.
Author
Owner

kayg tested the lab on a real iPhone (iOS 27 Safari):

  • TOP: variant 15 wins. That's the opaque top edge strip plus the masked ramp blur behind the pills. Change: the ramp must be shorter vertically, ending slightly below the pills.
  • BOTTOM: variant 14 wins. There's no bottom edge strip; the content scrolls under Safari's own glass toolbar and shows through it, the native look.

Apply this combination to the app (#445) and to all mockups (chrome.html).

**kayg tested the lab on a real iPhone (iOS 27 Safari):** - **TOP: variant 15 wins.** That's the opaque top edge strip plus the masked ramp blur behind the pills. Change: the ramp must be shorter vertically, ending slightly below the pills. - **BOTTOM: variant 14 wins.** There's no bottom edge strip; the content scrolls under Safari's own glass toolbar and shows through it, the native look. Apply this combination to the app (#445) and to all mockups (chrome.html).
Author
Owner

PR #497 (issue/445-no-bleed, not merged). Simulator check (iPhone 18 Pro, iOS 27.0), dev c82161d (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 CSS filter: 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 by filter on 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; d is the colour distance, step the biggest 1pt row step in the top/bottom 160pt):

home   pale   dark  | top d  B   3.2 A   3.5 | top step B   2 A   1 | foot d  B   0.5 A   0.4 | foot step B   1 A   1
home   pale   light | top d  B   4.1 A   4.6 | top step B   1 A   1 | foot d  B   1.0 A   1.0 | foot step B   1 A   1
home   photo  dark  | top d  B   1.7 A   1.6 | top step B   2 A   1 | foot d  B   4.9 A   4.8 | foot step B   1 A   1
home   photo  light | top d  B   1.3 A   1.4 | top step B   1 A   1 | foot d  B   6.4 A   6.9 | foot step B   1 A   1
home   plain  dark  | top d  B   0.7 A   0.9 | top step B   2 A   1 | foot d  B   1.0 A   0.0 | foot step B   1 A   0
home   plain  light | top d  B   0.5 A   1.8 | top step B   2 A   1 | foot d  B   1.0 A   0.4 | foot step B   1 A   1
home   seed   dark  | top d  B   5.4 A   5.8 | top step B   2 A   1 | foot d  B   7.1 A   4.3 | foot step B   1 A   1
home   seed   light | top d  B   7.6 A   7.7 | top step B   1 A   2 | foot d  B   9.8 A   6.3 | foot step B   1 A   1
safari seed   dark  | top d  B   1.0 A   0.6 | top step B   1 A   1 | foot d  B   0.5 A   9.1 | foot step B   1 A   2
safari seed   light | top d  B   1.2 A   0.6 | top step B   1 A   1 | foot d  B   1.1 A  12.4 | foot step B   3 A   4
home   sky    dark  | top d  B   2.8 A   1.3 | top step B   2 A   1 | foot d  B  19.3 A   9.2 | foot step B   1 A   1
home   sky    light | top d  B   4.1 A   1.8 | top step B   1 A   1 | foot d  B  14.5 A   7.6 | foot step B   1 A   1

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 d is 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 in pwa.spec.ts "nothing sits under the status bar" (30s scrollIntoViewIfNeeded under 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 playwright early 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.

PR #497 (`issue/445-no-bleed`, not merged). Simulator check (iPhone 18 Pro, iOS 27.0), dev `c82161d` (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 CSS `filter: 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 by `filter` on 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; `d` is the colour distance, `step` the biggest 1pt row step in the top/bottom 160pt): ``` home pale dark | top d B 3.2 A 3.5 | top step B 2 A 1 | foot d B 0.5 A 0.4 | foot step B 1 A 1 home pale light | top d B 4.1 A 4.6 | top step B 1 A 1 | foot d B 1.0 A 1.0 | foot step B 1 A 1 home photo dark | top d B 1.7 A 1.6 | top step B 2 A 1 | foot d B 4.9 A 4.8 | foot step B 1 A 1 home photo light | top d B 1.3 A 1.4 | top step B 1 A 1 | foot d B 6.4 A 6.9 | foot step B 1 A 1 home plain dark | top d B 0.7 A 0.9 | top step B 2 A 1 | foot d B 1.0 A 0.0 | foot step B 1 A 0 home plain light | top d B 0.5 A 1.8 | top step B 2 A 1 | foot d B 1.0 A 0.4 | foot step B 1 A 1 home seed dark | top d B 5.4 A 5.8 | top step B 2 A 1 | foot d B 7.1 A 4.3 | foot step B 1 A 1 home seed light | top d B 7.6 A 7.7 | top step B 1 A 2 | foot d B 9.8 A 6.3 | foot step B 1 A 1 safari seed dark | top d B 1.0 A 0.6 | top step B 1 A 1 | foot d B 0.5 A 9.1 | foot step B 1 A 2 safari seed light | top d B 1.2 A 0.6 | top step B 1 A 1 | foot d B 1.1 A 12.4 | foot step B 3 A 4 home sky dark | top d B 2.8 A 1.3 | top step B 2 A 1 | foot d B 19.3 A 9.2 | foot step B 1 A 1 home sky light | top d B 4.1 A 1.8 | top step B 1 A 1 | foot d B 14.5 A 7.6 | foot step B 1 A 1 ``` 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 d` is 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 in `pwa.spec.ts` "nothing sits under the status bar" (30s `scrollIntoViewIfNeeded` under 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: ![](https://git.kayg.org/attachments/400a8488-d028-4a0d-93b7-c6557d045e14) Home Screen light: ![](https://git.kayg.org/attachments/02a8dc80-83fc-4982-8c74-63a8f231838a) Safari tab dark: ![](https://git.kayg.org/attachments/1a45f9b2-9cac-40ee-a34e-3b5c8c67a92f) Safari tab light: ![](https://git.kayg.org/attachments/046d5b33-1ee4-44d5-a80b-9ed33282d4f2) Journal on sky, built-in photo, plain, pale upload (rows: light before, light after, dark before, dark after): ![](https://git.kayg.org/attachments/92941a6b-6a7e-49f1-8681-f1d9eaa023c0) Journal, dark, top 300pt, before | after: ![](https://git.kayg.org/attachments/76082b68-8cd5-4ba4-b23c-67848f99964e) 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 playwright` early 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.
Author
Owner

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.

Starting issue #445 research. Branch: none (research only). Base reference: issue/445-bottom-band checkout at a6a2faedad460c5596b2a6abcdbae9898634afee. 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.
Author
Owner

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: 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: https://github.com/WebKit/WebKit/blob/d3afea7d89fd2b062ef39b644c3f026dc4904070/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.
Author
Owner

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: 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.
Author
Owner

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.

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: https://github.com/WebKit/WebKit/commit/8b5cfad939f76e35a20fbc885759fb82914843d0 . A later trunk change, 83f810@main (2026-10-10), removes the iOS top system-background extension; Bug 327043 / rdar://188210655: https://github.com/WebKit/WebKit/commit/83f810390d84178fc664f6cd748df401328a91b6 . 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.
Author
Owner

PWA and viewport finding: viewport-fit=cover makes 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 say black-translucent lets 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. Manifest background_color is only a loading placeholder; theme_color is 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/ .

PWA and viewport finding: `viewport-fit=cover` makes 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 say `black-translucent` lets 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. Manifest `background_color` is only a loading placeholder; `theme_color` is 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/ .
Author
Owner

Viewport and bottom-toolbar finding: W3C defines lvh using browser UI retracted, svh with it expanded, and dvh as dynamic; dvh can 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 fixed bottom:0 is 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 .

Viewport and bottom-toolbar finding: W3C defines `lvh` using browser UI retracted, `svh` with it expanded, and `dvh` as dynamic; `dvh` can 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 fixed `bottom:0` is 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 .
Author
Owner

Research complete for issue #445. The full report is saved at /home/kayg/Developer/calternal-research/safari-edges-2026-10-17.md (SHA-256 08a69c6c08d9363863e6c08abbb864461c24963b6e5efb6099a7e5769449ee5a). 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:

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

Research complete for issue #445. The full report is saved at `/home/kayg/Developer/calternal-research/safari-edges-2026-10-17.md` (SHA-256 `08a69c6c08d9363863e6c08abbb864461c24963b6e5efb6099a7e5769449ee5a`). 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: - Safari 26 tab tint is implementation-driven, not reliably controlled by `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=301756 https://github.com/WebKit/WebKit/blob/d3afea7d89fd2b062ef39b644c3f026dc4904070/Source/WebCore/page/LocalFrameView.cpp - The absolute clipped backdrop with a 100lvh+256px child counter-scrolled by root scroll range is the best evidenced workaround for bottom coverage in the supplied simulator observation. Use its threaded animation path on touch Safari 26.4+; it does not remove the iOS 27.0 top strip. https://webkit.org/blog/17862/webkit-features-for-safari-26-4/ https://github.com/kaygdotorg/website/blob/7e6400b38cb1556afe53791f588012ae6eac28c8/docs/performance.md#L60-L100 - WebKit 318137 added a top system fill at the iOS 27 scroll origin, suppressed by a visible sampled top extension. Oct 10 trunk commit 323309 removes that extension; it postdates Safari 27.0, so later 27.x behavior is unverified. https://github.com/WebKit/WebKit/commit/8b5cfad939f76e35a20fbc885759fb82914843d0 https://github.com/WebKit/WebKit/commit/83f810390d84178fc664f6cd748df401328a91b6 - `viewport-fit=cover` and safe-area env values do not expose Safari toolbar size. Standalone PWA can use `black-translucent` for 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/ - A page has no supported control to set Safari's obscured inset fill or place its controls into the bottom toolbar layer. https://bugs.webkit.org/show_bug.cgi?id=297779 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).
Author
Owner

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

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. ![](https://git.kayg.org/attachments/b3672d5c-f8df-46a7-a4b5-49668a386898) 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).
Author
Owner

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

**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).
Author
Owner

PR #528 replaces #521 (on train w, with #522's list chrome and windowing kept).

Scroll perf, perf400/m.mjs scroll mode, 4x CPU, 390x844, 10k list, p95 frame time over 3 runs:

  • before (#521 branch, sky): 100 / 100 / 83 ms, 96% of frames over 20 ms.
  • after the sky and photo are blurred once and the live layers are not painted: 17 / 33 / 33 ms (3-9% over 20 ms), measured before the pills were made fixed.
  • with the pills fixed to the window again (they must be, for document scrolling): 83 / 83 / 67 ms. Their 7 live blur layers (5px each) are now the cost: with their backdrop-filter off, p95 is 50 ms. Everything else in the scroll test is cheap.
    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.

PR #528 replaces #521 (on train w, with #522's list chrome and windowing kept). Scroll perf, `perf400/m.mjs` scroll mode, 4x CPU, 390x844, 10k list, p95 frame time over 3 runs: - before (#521 branch, sky): 100 / 100 / 83 ms, 96% of frames over 20 ms. - after the sky and photo are blurred once and the live layers are not painted: 17 / 33 / 33 ms (3-9% over 20 ms), measured before the pills were made fixed. - with the pills fixed to the window again (they must be, for document scrolling): 83 / 83 / 67 ms. Their 7 live blur layers (5px each) are now the cost: with their backdrop-filter off, p95 is 50 ms. Everything else in the scroll test is cheap. 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.
Author
Owner

Nightly full colour matrix failed at c5b9a1b on: 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$\n

Nightly full colour matrix failed at `c5b9a1b` on: attachments-1gib$\n$\n**attachments-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```$\n
Author
Owner

Starting issue #445 work on branch issue/445-ios-lab, based on origin/issue/469-chrome-mockup-5 at 6c66dc804cf5c817530f2ce743ced3d719c8b554. I will research the Safari behavior, build and test the iPhone lab, then deploy only ioslab.html and report findings.

Starting issue #445 work on branch `issue/445-ios-lab`, based on `origin/issue/469-chrome-mockup-5` at `6c66dc804cf5c817530f2ce743ced3d719c8b554`. I will research the Safari behavior, build and test the iPhone lab, then deploy only `ioslab.html` and report findings.
Author
Owner

Source finding: WebKit caches the sampled edge color with the previous fixed element. In LocalFrameView.cpp, the sampler reuses the prior color when lastFixedContainer is the same element, so a CSS color change on that element can leave the browser extension stale. Page.cpp also 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.

Source finding: WebKit caches the sampled edge color with the previous fixed element. In `LocalFrameView.cpp`, the sampler reuses the prior color when `lastFixedContainer` is the same element, so a CSS color change on that element can leave the browser extension stale. `Page.cpp` also 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](https://github.com/WebKit/WebKit/blob/d3afea7d89fd2b062ef39b644c3f026dc4904070/Source/WebCore/page/LocalFrameView.cpp#L2685-L2707), [Page update gate](https://github.com/WebKit/WebKit/blob/d3afea7d89fd2b062ef39b644c3f026dc4904070/Source/WebCore/page/Page.cpp#L5648-L5660), [iPhone default](https://github.com/WebKit/WebKit/blob/d3afea7d89fd2b062ef39b644c3f026dc4904070/Source/WebKit/Shared/Cocoa/WebPreferencesDefaultValuesCocoa.mm#L155-L162).
Author
Owner

Keyboard API finding: the W3C draft defines keyboard-inset-*, and the CSS Viewport spec defines interactive-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.

Keyboard API finding: the W3C draft defines `keyboard-inset-*`, and the CSS Viewport spec defines `interactive-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](https://bugs.webkit.org/show_bug.cgi?id=230225), [WebKit interactive-widget bug #259770](https://bugs.webkit.org/show_bug.cgi?id=259770), [W3C VirtualKeyboard API draft](https://www.w3.org/TR/virtual-keyboard/), [CSS Viewport interactive-widget spec](https://www.w3.org/TR/css-viewport-1/#interactive-widget).
Author
Owner

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@2c0658bf3b and github.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.

iOS 27 simulator same-element restyle, screen B

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: https://github.com/WebKit/WebKit/commit/2c0658bf3b5d5ba387a3e2e8dae776abf78f196a and https://github.com/WebKit/WebKit/blob/d3afea7d89fd2b062ef39b644c3f026dc4904070/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: https://github.com/WebKit/WebKit/commit/83f810390d84178fc664f6cd748df401328a91b6. ![iOS 27 simulator same-element restyle, screen B](https://git.kayg.org/attachments/a66de4db-bc91-403b-b81f-a82b6e6201a7)
Author
Owner

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.

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.
Author
Owner

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.

iOS 27 Safari tab keyboard and viewport placement

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. ![iOS 27 Safari tab keyboard and viewport placement](https://git.kayg.org/attachments/6ab4640c-8a34-45b9-aa5c-d14cafdd9d35)
Author
Owner

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.

iOS 27 simulator vv54 toolbar placement

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. ![iOS 27 simulator vv54 toolbar placement](https://git.kayg.org/attachments/54f6d5fc-af0f-4ad5-bd21-c97c880f1800)
Author
Owner

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.

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.
Author
Owner

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.

iOS 27 Home Screen app keyboard and assistant row

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. ![iOS 27 Home Screen app keyboard and assistant row](https://git.kayg.org/attachments/4928f1bf-e3b6-4593-a720-b0093a2f7b65)
Author
Owner

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.

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.
Author
Owner

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

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](https://preview.calternal.cloud/ioslab.html?top=none&screen=a), [restyle](https://preview.calternal.cloud/ioslab.html?top=restyle&screen=a), [layout](https://preview.calternal.cloud/ioslab.html?top=layout&screen=a), [new](https://preview.calternal.cloud/ioslab.html?top=new&screen=a), [detach](https://preview.calternal.cloud/ioslab.html?top=detach&screen=a), [nudge](https://preview.calternal.cloud/ioslab.html?top=nudge&screen=a), [push](https://preview.calternal.cloud/ioslab.html?top=push&screen=a), [theme](https://preview.calternal.cloud/ioslab.html?top=theme&screen=a), [visibility](https://preview.calternal.cloud/ioslab.html?top=visibility&screen=a), [html](https://preview.calternal.cloud/ioslab.html?top=html&screen=a), [body](https://preview.calternal.cloud/ioslab.html?top=body&screen=a), [opacity75](https://preview.calternal.cloud/ioslab.html?top=opacity75&screen=a), [opacity90](https://preview.calternal.cloud/ioslab.html?top=opacity90&screen=a), [opacity99](https://preview.calternal.cloud/ioslab.html?top=opacity99&screen=a), [opacity100](https://preview.calternal.cloud/ioslab.html?top=opacity100&screen=a), [bg75](https://preview.calternal.cloud/ioslab.html?top=bg75&screen=a), [bg90](https://preview.calternal.cloud/ioslab.html?top=bg90&screen=a), [bg99](https://preview.calternal.cloud/ioslab.html?top=bg99&screen=a), [navigation](https://preview.calternal.cloud/ioslab.html?top=navigation&screen=a) Keyboard variants: [fixed](https://preview.calternal.cloud/ioslab.html?kb=fixed&screen=a), [vv](https://preview.calternal.cloud/ioslab.html?kb=vv&screen=a), [vv54](https://preview.calternal.cloud/ioslab.html?kb=vv54&screen=a), [env](https://preview.calternal.cloud/ioslab.html?kb=env&screen=a), [dvh](https://preview.calternal.cloud/ioslab.html?kb=dvh&screen=a), [interactive](https://preview.calternal.cloud/ioslab.html?kb=interactive&screen=a) 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
Author
Owner

Results from kayg's iPhone (iOS 27, Safari tab), 2026-10-18:

  • Top colour: Replace with a new element and Remove and re-add both change the status-bar colour correctly, even with fast repeated switching. We use "replace with a new element".
  • Toolbar: visualViewport bottom sits correctly above the ˄˅✓ row. +54 px sometimes jumps under the iOS keyboard toolbar, so it is rejected.
  • Home Screen app: not tested yet.

Next, chrome.html adopts both fixes; they go into the app with port slice 2.

**Results from kayg's iPhone (iOS 27, Safari tab), 2026-10-18:** - Top colour: **Replace with a new element** and **Remove and re-add** both change the status-bar colour correctly, even with fast repeated switching. We use "replace with a new element". - Toolbar: **visualViewport bottom** sits correctly above the ˄˅✓ row. **+54 px** sometimes jumps under the iOS keyboard toolbar, so it is rejected. - Home Screen app: not tested yet. Next, chrome.html adopts both fixes; they go into the app with port slice 2.
Author
Owner

chrome.html (https://preview.calternal.cloud/chrome.html, commit c15d912 on 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.

chrome.html (https://preview.calternal.cloud/chrome.html, commit c15d912 on 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.
Author
Owner

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-scroller scroll 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, and overflow-x: clip on the scroller and on the document-scroll root. PR: #578

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-scroller` scroll 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, and `overflow-x: clip` on the scroller and on the document-scroll root. PR: https://git.kayg.org/kayg/calternal/pulls/578
Author
Owner

Keyboard 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.html untouched.

1. Diff: lab vv variant vs keyboard-guard.ts on issue/469-chrome-mockup-5

The arithmetic is the same (lift = below - 14 + 8, below = innerHeight - (offsetTop + height), only when below > 80). Everything around it differs:

  1. Refresh. The lab re-ran the placement on window resize and scroll, visualViewport resize/scroll, focusin, 300 ms after focusout, and every 700 ms (setInterval). The guard runs only on visualViewport resize/scroll, selectionchange, input, focusin, focusout (+0 ms), each as one requestAnimationFrame, 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 (offsetTop 0 inside the resize handler, right 50 ms later). No window resize/scroll listener at all in the guard.
  2. innerHeight is not where bottom is. Both use innerHeight. In the iOS 27 simulator, WITH the keyboard up, innerHeight was 703 / 676 while bottom: 0 of 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 mismatch innerHeight vs visualViewport.height on iOS 26; Safari 26 puts bottom: 0 above its controls on purpose). The lab page happened to have 0 here.
  3. The resting 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 is max(sb,8)+6-14 too high (26 px at 34: the "too high" photo has that sign).
  4. Spring. Lab: transform with no transition. Chrome: translate with a 380 ms cubic-bezier(.32,.72,0,1) transition, switched off only for 180 ms after a visualViewport scroll. At rest it is the same box; while numbers are still changing it chases a moving target.
  5. --lift is 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.
  6. The page. Lab: a 180vh page with an <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-room padding that grows the document while the keyboard animates, so iOS scrolls again and offsetTop moves again.
  7. Meta. Chrome has interactive-widget=resizes-content; the lab did not. Safari ignores it (bugs 259770, 230225 still NEW), but it is a difference.
  8. --lift is 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's setRoom copied). Placements: top (top = offsetTop + height - barH - 8), probe (bottom = fixedBottom0 - vvBottom + 8, fixedBottom0 measured from a fixed probe, not innerHeight), bottom (innerHeight), transform (lab vv), 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: 0 position, 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 iOS getBoundingClientRect() of a fixed box is shifted by offsetTop against its top (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:

scenario (innerHeight / bottom:0 / offsetTop) top probe bottom transform chrome shipped
a long note (714 / 714 / 136) 0 0 0 0 0
b empty note (676 / 714 / 38) 0 0 -38 -38 -38
c input (703 / 714 / 10.7) 0 0 -11 -11 -11
d long + room (714 / 714 / 136) 0 0 0 0 0

The shipped formula puts the bar UNDER the ˄˅✓ row in the empty note, in the simulator too (the "too low" photo). top and probe were 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.
b-chromeb-top
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: events stays 120 px wrong, loop is right at once, poll is not there after 400 ms.

4. For #469 (not done here, chrome.html is another agent's)

Place the bar with top (or bottom from a measured fixed bottom:0 probe), not from innerHeight and 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 - 8 and 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).

  1. ?scn=a&place=top&refresh=loop: scroll the page a little with your FINGER (Safari's toolbar shrinks), tap the yellow TAP THIS LINE.
  2. ?scn=a&place=probe&refresh=loop: the same.
  3. ?scn=b&place=top&refresh=loop: the empty note, tap below the title (the photo that was too high).
  4. ?scn=b&place=chrome&refresh=events: the shipped formula in that note, for the HUD numbers.
  5. ?scn=c&place=top&refresh=loop: the old input case, as a sanity check. (If 1 or 3 is wrong, the same note with place=bottom / refresh=poll is one tap in the panel.)
**Keyboard 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.html` untouched. ## 1. Diff: lab `vv` variant vs `keyboard-guard.ts` on `issue/469-chrome-mockup-5` The arithmetic is the same (`lift = below - 14 + 8`, `below = innerHeight - (offsetTop + height)`, only when `below > 80`). Everything around it differs: 1. **Refresh.** The lab re-ran the placement on window `resize` and `scroll`, visualViewport `resize`/`scroll`, `focusin`, 300 ms after `focusout`, and **every 700 ms** (`setInterval`). The guard runs only on visualViewport `resize`/`scroll`, `selectionchange`, `input`, `focusin`, `focusout` (+0 ms), each as one `requestAnimationFrame`, and never looks again. A number that arrives late is never corrected. This is [WebKit 265578](https://bugs.webkit.org/show_bug.cgi?id=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](https://bugs.webkit.org/show_bug.cgi?id=237851) (`offsetTop` 0 inside the resize handler, right 50 ms later). No window `resize`/`scroll` listener at all in the guard. 2. **`innerHeight` is not where `bottom` is.** Both use `innerHeight`. In the iOS 27 simulator, WITH the keyboard up, `innerHeight` was 703 / 676 while `bottom: 0` of 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 mismatch `innerHeight` vs `visualViewport.height` on iOS 26; Safari 26 puts `bottom: 0` above its controls on purpose). The lab page happened to have 0 here. 3. **The resting `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 is `max(sb,8)+6-14` too high (26 px at 34: the "too high" photo has that sign). 4. **Spring.** Lab: `transform` with no transition. Chrome: `translate` with a 380 ms `cubic-bezier(.32,.72,0,1)` transition, switched off only for 180 ms after a visualViewport `scroll`. At rest it is the same box; while numbers are still changing it chases a moving target. 5. **`--lift` is 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. 6. **The page.** Lab: a 180vh page with an `<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-room` padding that grows the document while the keyboard animates, so iOS scrolls again and `offsetTop` moves again. 7. **Meta.** Chrome has `interactive-widget=resizes-content`; the lab did not. Safari ignores it (bugs 259770, 230225 still NEW), but it is a difference. 8. `--lift` is 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's `setRoom` copied). Placements: `top` (`top = offsetTop + height - barH - 8`), `probe` (`bottom = fixedBottom0 - vvBottom + 8`, `fixedBottom0` measured from a fixed probe, not `innerHeight`), `bottom` (`innerHeight`), `transform` (lab `vv`), `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: 0` position, 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 iOS `getBoundingClientRect()` of a fixed box is shifted by `offsetTop` against its `top` (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: | scenario (innerHeight / bottom:0 / offsetTop) | top | probe | bottom | transform | chrome shipped | |---|---|---|---|---|---| | a long note (714 / 714 / 136) | 0 | 0 | 0 | 0 | 0 | | b empty note (676 / 714 / 38) | 0 | 0 | -38 | -38 | -38 | | c input (703 / 714 / 10.7) | 0 | 0 | -11 | -11 | -11 | | d long + room (714 / 714 / 136) | 0 | 0 | 0 | 0 | 0 | The shipped formula puts the bar UNDER the ˄˅✓ row in the empty note, in the simulator too (the "too low" photo). `top` and `probe` were 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. ![b-chrome](https://git.kayg.org/attachments/0c79b183-42f4-4de5-8a3c-729b6fa68b09)![b-top](https://git.kayg.org/attachments/5ea6b7d4-db38-4c83-898f-d6676c44e8fb) 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: `events` stays 120 px wrong, `loop` is right at once, `poll` is not there after 400 ms. ## 4. For #469 (not done here, chrome.html is another agent's) Place the bar with `top` (or `bottom` from a measured `fixed bottom:0` probe), not from `innerHeight` and 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 - 8` and 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). 1. `?scn=a&place=top&refresh=loop`: scroll the page a little with your FINGER (Safari's toolbar shrinks), tap the yellow TAP THIS LINE. 2. `?scn=a&place=probe&refresh=loop`: the same. 3. `?scn=b&place=top&refresh=loop`: the empty note, tap below the title (the photo that was too high). 4. `?scn=b&place=chrome&refresh=events`: the shipped formula in that note, for the HUD numbers. 5. `?scn=c&place=top&refresh=loop`: the old input case, as a sanity check. (If 1 or 3 is wrong, the same note with `place=bottom` / `refresh=poll` is one tap in the panel.)
Author
Owner

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), default both, one tap in the panel:

  • cm: CodeMirror EditorView.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-dispatches EditorView.scrollIntoView(head, {y: "nearest"}). It is NOT bar + gap + (layout bottom - vv bottom): CodeMirror's windowRect measures the caret against 0 .. 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.scrollBy by 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.
  • Never fights a finger: paused on touchstart/touchmove, resumes 120 ms after touchend.
  • Readout: "caret N px above the bar" or "UNDER the bar by N" (caret bottom vs bar top), and a green line at the caret bottom. The CodeMirror bundle is unchanged (the margins facet is added through the view), so only ioslab.html was redeployed.

A second bug in the shipped guard (found on the way)

below = innerHeight - (offsetTop + height) with the > 80 gate: when iOS pans the visual viewport down to show the caret, offsetTop + height reaches innerHeight with the keyboard fully up (simulator: offsetTop 303 + height 411 = 714). below is then 0 to 80, the guard drops --lift to 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 is innerHeight - vv.height (303 in every state), independent of the pan; the lab uses it by default (gate=shipped brings the old one back).

iOS 27.0 simulator, real taps, place=top&refresh=loop

Caret 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 scrollIntoView while the real keyboard is up; XCUITest typeText typed nothing, so only the Returns are real key presses). b is the empty note, lines typed at its end.

follow a: tap a: 3x Return a: +8 lines b: +8 lines
none UNDER 56 131 above (page panned to 303) UNDER 59 UNDER 59
cm 17 17 17 18
manual 82 23 13 13
both 207 128 18 17

With none the caret ends under the bar, as on the phone; with every follow option it never did. cm is the tightest (the caret ends 17 px above the bar and stays); manual lets iOS pan first and then corrects (13 px); both is the safest and shows the largest first gap because iOS and CodeMirror have both moved it before the lab settles.
nonecm
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.

  1. cm: https://preview.calternal.cloud/ioslab.html?scn=a&place=top&refresh=loop&follow=cm and https://preview.calternal.cloud/ioslab.html?scn=b&place=top&refresh=loop&follow=cm
  2. manual: https://preview.calternal.cloud/ioslab.html?scn=a&place=top&refresh=loop&follow=manual and https://preview.calternal.cloud/ioslab.html?scn=b&place=top&refresh=loop&follow=manual
  3. both: https://preview.calternal.cloud/ioslab.html?scn=a&place=top&refresh=loop&follow=both and https://preview.calternal.cloud/ioslab.html?scn=b&place=top&refresh=loop&follow=both (also drag the page with a finger while the keyboard is up: it must not fight you)
**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), default `both`, one tap in the panel: - `cm`: CodeMirror `EditorView.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-dispatches `EditorView.scrollIntoView(head, {y: "nearest"})`. It is NOT `bar + gap + (layout bottom - vv bottom)`: CodeMirror's `windowRect` measures the caret against `0 .. 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.scrollBy` by 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. - Never fights a finger: paused on `touchstart`/`touchmove`, resumes 120 ms after `touchend`. - Readout: "caret N px above the bar" or "UNDER the bar by N" (caret bottom vs bar top), and a green line at the caret bottom. The CodeMirror bundle is unchanged (the margins facet is added through the view), so only `ioslab.html` was redeployed. ## A second bug in the shipped guard (found on the way) `below = innerHeight - (offsetTop + height)` with the `> 80` gate: when iOS pans the visual viewport down to show the caret, `offsetTop + height` reaches `innerHeight` with the keyboard fully up (simulator: offsetTop 303 + height 411 = 714). `below` is then 0 to 80, the guard drops `--lift` to 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 is `innerHeight - vv.height` (303 in every state), independent of the pan; the lab uses it by default (`gate=shipped` brings the old one back). ## iOS 27.0 simulator, real taps, `place=top&refresh=loop` Caret 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 `scrollIntoView` while the real keyboard is up; XCUITest `typeText` typed nothing, so only the Returns are real key presses). b is the empty note, lines typed at its end. | follow | a: tap | a: 3x Return | a: +8 lines | b: +8 lines | |---|---|---|---|---| | none | UNDER 56 | 131 above (page panned to 303) | UNDER 59 | UNDER 59 | | cm | 17 | 17 | 17 | 18 | | manual | 82 | 23 | 13 | 13 | | both | 207 | 128 | 18 | 17 | With `none` the caret ends under the bar, as on the phone; with every follow option it never did. `cm` is the tightest (the caret ends 17 px above the bar and stays); `manual` lets iOS pan first and then corrects (13 px); `both` is the safest and shows the largest first gap because iOS and CodeMirror have both moved it before the lab settles. ![none](https://git.kayg.org/attachments/7af1c834-ad63-4500-bc30-08111ab151b0)![cm](https://git.kayg.org/attachments/1d0bad17-d702-4d51-be1f-80936d75789e) 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. 1. cm: https://preview.calternal.cloud/ioslab.html?scn=a&place=top&refresh=loop&follow=cm and https://preview.calternal.cloud/ioslab.html?scn=b&place=top&refresh=loop&follow=cm 2. manual: https://preview.calternal.cloud/ioslab.html?scn=a&place=top&refresh=loop&follow=manual and https://preview.calternal.cloud/ioslab.html?scn=b&place=top&refresh=loop&follow=manual 3. both: https://preview.calternal.cloud/ioslab.html?scn=a&place=top&refresh=loop&follow=both and https://preview.calternal.cloud/ioslab.html?scn=b&place=top&refresh=loop&follow=both (also drag the page with a finger while the keyboard is up: it must not fight you)
Author
Owner

Focus-hop round (lab commit 79db0dc, branch issue/445-ios-lab)

Lab (deployed, only ioslab.html changed, other files' hashes unchanged, backup site.bak-445lab3-*):

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

path mode hops overlaps
old (kb=vv, plain page) Safari tab 24 11 (every hop back to field 1 while the keyboard was up: hops 3,5,...,23)
old Home Screen 23 0
new (place=top&refresh=loop, scn f, 3 inputs + editable) Safari tab 24 (+24 with follow=both) 0
new Home Screen 9 + 17 0
new + extra=48 Safari tab 6 0

Root 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 is covered > 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: gate innerHeight - 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=48 is 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 each res.json.

Device checklist (3 steps)

  1. Delete the old lab icon. In Safari open 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.
  2. The page is already scrolled to the fields. Tap Field 1, Field 2, Field 1, Field 3, the editable block, Field 1 (about 10 hops, keyboard stays up). After each, screenshot with the top readout visible. Good = green "exact 0 px" and the bar clear of ˄˅✓.
  3. If it overlaps: scroll to the bottom and screenshot the "Hop log" panel (vvH / vvTop / sY per hop), then tap the chip "extra 48" at the top of the page, repeat 3 hops and say if that clears the row.
## Focus-hop round (lab commit 79db0dc, branch `issue/445-ios-lab`) Lab (deployed, only ioslab.html changed, other files' hashes unchanged, backup `site.bak-445lab3-*`): - new scenario `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=loop - old path, now with a hop log too: https://preview.calternal.cloud/ioslab.html?kb=vv&screen=a - hop log = `vv.height`, `vv.offsetTop`, `scrollY`, bar rect per frame for 1 s after every `focusin` (panel "Hop log" at the bottom of f, and under the readout on the plain page; `window.__hops`). `extra=48` lifts the bar 48 px more. - scn f defaults to `follow=none` so 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 | path | mode | hops | overlaps | |---|---|---|---| | old (`kb=vv`, plain page) | Safari tab | 24 | 11 (every hop back to field 1 while the keyboard was up: hops 3,5,...,23) | | old | Home Screen | 23 | 0 | | new (`place=top&refresh=loop`, scn f, 3 inputs + editable) | Safari tab | 24 (+24 with follow=both) | 0 | | new | Home Screen | 9 + 17 | 0 | | new + `extra=48` | Safari tab | 6 | 0 | Root 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 is `covered > 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: gate `innerHeight - 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=48` is 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 each `res.json`. ### Device checklist (3 steps) 1. Delete the old lab icon. In Safari open `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. 2. The page is already scrolled to the fields. Tap Field 1, Field 2, Field 1, Field 3, the editable block, Field 1 (about 10 hops, keyboard stays up). After each, screenshot with the top readout visible. Good = green "exact 0 px" and the bar clear of ˄˅✓. 3. If it overlaps: scroll to the bottom and screenshot the "Hop log" panel (vvH / vvTop / sY per hop), then tap the chip "extra 48" at the top of the page, repeat 3 hops and say if that clears the row.
Author
Owner

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.

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.
Author
Owner

Landed in train AH, #616.

Landed in train AH, #616.
Author
Owner

Nightly full colour matrix failed at a779a46 on: webkit-1440$\n$\nwebkit-1440: $\n$\n$\n$\n$\n

Nightly full colour matrix failed at `a779a46` on: webkit-1440$\n$\n**webkit-1440**: $\n$\n```$\n$\n```$\n
Sign in to join this conversation.
No milestone
No project
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
No description provided.