Safari edges: the page's base colour is the sky; backdrop in the page on iOS 26.4+ (#105) #158

Closed
kayg wants to merge 0 commits from issue/105-sky-edges-merge into dev
Owner

Round 2 for #105. kayg's iPhone still showed flat beige under the status bar and behind Safari's bottom toolbar.

Round 1's sky gradient on html didn't help: Safari fills its bars from the root's background-color, and that was still paper. This round follows kayg.org's GrainBackground:

  • The root colour is the backdrop's own edge colour. html/body background-color is the sky's live top (dimmed in dark theme), the photo's sky, or the plain colour. It is paper only while a note fills a phone screen. theme-color follows the same computed colour.
  • The backdrop sits in the page on iOS 26.4+. It is lvh + 128px overscan, counter-scrolled on animation-timeline: scroll(root block). Everywhere else it falls back to position: fixed, lvh tall, covering the status bar. The gate is the same as the reference: touch WebKit, scroll timelines supported, Safari ≥ 26.4.
  • The root still has nothing to scroll. The surface clips at the body. WebKit has no overflow-clip-margin, so a box shadow in the picture's foot colour paints past the body instead; a shadow doesn't make the page taller.
  • A note on a phone: paper fades in under the toolbar strip as the page slides in.

The issue comment explains why each piece should work on iOS 26/27, with the WebKit sources. Tests: safe-areas.spec.ts (computed colours, positions, scroll range 0, no layout shift), Chromium and WebKit.

Needs kayg's phone on next.calternal.cloud; the checklist is on the issue.

Closes #105

🤖 Generated with Claude Code

(Replaces #153, merged with current dev. Review on #153.)

Round 2 for #105. kayg's iPhone still showed flat beige under the status bar and behind Safari's bottom toolbar. Round 1's sky gradient on `html` didn't help: Safari fills its bars from the root's `background-color`, and that was still paper. This round follows kayg.org's GrainBackground: - **The root colour is the backdrop's own edge colour.** `html`/`body` `background-color` is the sky's live top (dimmed in dark theme), the photo's sky, or the plain colour. It is paper only while a note fills a phone screen. `theme-color` follows the same computed colour. - **The backdrop sits in the page on iOS 26.4+.** It is `lvh` + 128px overscan, counter-scrolled on `animation-timeline: scroll(root block)`. Everywhere else it falls back to `position: fixed`, `lvh` tall, covering the status bar. The gate is the same as the reference: touch WebKit, scroll timelines supported, Safari ≥ 26.4. - **The root still has nothing to scroll.** The surface clips at the body. WebKit has no `overflow-clip-margin`, so a box shadow in the picture's foot colour paints past the body instead; a shadow doesn't make the page taller. - **A note on a phone:** paper fades in under the toolbar strip as the page slides in. The issue comment explains why each piece should work on iOS 26/27, with the WebKit sources. Tests: `safe-areas.spec.ts` (computed colours, positions, scroll range 0, no layout shift), Chromium and WebKit. Needs kayg's phone on next.calternal.cloud; the checklist is on the issue. Closes #105 🤖 Generated with [Claude Code](https://claude.com/claude-code) (Replaces #153, merged with current dev. Review on #153.)
Safari edges: the page's base colour is the sky, backdrop in the page on iOS 26.4+ (#105)
Some checks failed
CI / rust (pull_request) Failing after 34s
CI / web (pull_request) Failing after 8m7s
1118a0b34d
Round 1 put a gradient on `html`; Safari ignores gradients for its bars and
fills them from the root `background-color`, which was paper. Following
kayg.org's GrainBackground:

- `html` and `body` `background-color` is the backdrop's own edge colour:
  the sky's live top (dimmed with the sky in dark theme), the photo's sky,
  the plain colour; paper only while a note fills a phone screen.
  `theme-color` follows the same computed colour.
- The backdrop is one large screen (`lvh`) plus the status bar, fixed, as
  the fallback. On touch WebKit 26.4+ it sits in the page instead (Safari
  doesn't paint fixed layers behind its bottom toolbar), with 128px of
  overscan and a counter-scroll on the root scroll timeline. The surface
  clips at the body so the root still has nothing to scroll; a box shadow
  in the picture's foot colour paints past it (WebKit has no
  `overflow-clip-margin`).
- On a phone, a note's paper reaches under the toolbar strip too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Merge remote-tracking branch 'origin/dev' into issue/105-safari-sky-edges
Some checks failed
CI / rust (pull_request) Failing after 33s
CI / web (pull_request) Failing after 2m0s
0e4aab4f31
Author
Owner

Closing: this branch is already fully contained in dev (it landed through a merge train). Branch cleanup, 2026-10-15.

Closing: this branch is already fully contained in `dev` (it landed through a merge train). Branch cleanup, 2026-10-15.
kayg closed this pull request 2026-10-15 08:34:54 +00:00
Some checks failed
CI / rust (pull_request) Failing after 33s
CI / web (pull_request) Failing after 2m0s

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!158
No description provided.