Home Screen app fills the screen to both edges (#396) #405

Closed
kayg wants to merge 0 commits from issue/396-ios-edges into dev
Owner

Fixes #396. The research, the evidence and the device checklist are on the issue.

On an iPhone Home Screen, iOS 26/27 report 100svh (and other units) one status bar short, while position: fixed reaches the real bottom (WebKit bug 301994). The app was sized by svh, so it stopped about 62 pt short, and the flat edge strips from #226 showed at the top and bottom.

  • lib/home-screen.ts: on iOS Home Screen only, a zero-width fixed probe measures the real screen. A ResizeObserver watches it (no work on scroll) and writes --vh and --screen-h only when they change, and sets data-home-screen on the root.
  • The backdrop and body now size from --screen-h (default 100lvh).
  • On the Home Screen, PhoneStack's .edge strips and the backdrop's .scrim are off.
  • Safari tabs, Android and desktop are unchanged.
  • New e2e/home-screen.spec.ts: 24 cases × 2 engines. They fail on dev (the stack ends 47 px short) and pass here.

Not merged; this is for review.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Fixes #396. The research, the evidence and the device checklist are on the issue. On an iPhone Home Screen, iOS 26/27 report `100svh` (and other units) one status bar short, while `position: fixed` reaches the real bottom (WebKit bug 301994). The app was sized by `svh`, so it stopped about 62 pt short, and the flat edge strips from #226 showed at the top and bottom. - `lib/home-screen.ts`: on iOS Home Screen only, a zero-width fixed probe measures the real screen. A ResizeObserver watches it (no work on scroll) and writes `--vh` and `--screen-h` only when they change, and sets `data-home-screen` on the root. - The backdrop and `body` now size from `--screen-h` (default `100lvh`). - On the Home Screen, PhoneStack's `.edge` strips and the backdrop's `.scrim` are off. - Safari tabs, Android and desktop are unchanged. - New `e2e/home-screen.spec.ts`: 24 cases × 2 engines. They fail on dev (the stack ends 47 px short) and pass here. Not merged; this is for review. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Home Screen app fills the screen to both edges (#396)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 2m0s
CI / web (pull_request) Failing after 45m46s
16ec96c69e
On an iPhone Home Screen, iOS 26/27 report 100svh (and dvh, innerHeight, sometimes lvh) one
status bar short while position: fixed boxes reach the real bottom (WebKit bug 301994). The app,
sized by 100svh, stopped ~62pt above the bottom; the backdrop's page-colour floor showed under it
as a flat band, and the list, a sheet and its dim all ended above it. The edge strips that only
exist to meet Safari's own bars (#226) made the top flat too.

- lib/home-screen.ts: on iOS Home Screen only, a zero-width fixed probe (ResizeObserver, no scroll
  work) measures the real screen and writes --vh and the new --screen-h (only on change), and the
  root gets data-home-screen.
- The backdrop and body size from --screen-h (100lvh by default) instead of a fixed 100lvh.
- On the Home Screen, PhoneStack's .edge strips and the backdrop's .scrim are off: the glass and
  the picture run to the top and bottom edges.
- Safari tabs, Android and desktop are unchanged.
- e2e/home-screen.spec.ts models the Home Screen bug (short units, __homeScreen) at 320/360/375/390,
  light and dark, list/note/sheet; it fails on dev (stack 47px short) and passes here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in dev via train k (#441).

Landed in dev via train k (#441).
kayg closed this pull request 2026-10-15 14:34:31 +00:00
Some checks failed
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 2m0s
CI / web (pull_request) Failing after 45m46s

Pull request closed

Sign in to join this conversation.
No reviewers
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!405
No description provided.