Notes Float: opening a note never fades the page card's glass (#1127) #1128

Closed
kayg wants to merge 0 commits from port/notes-float-1127 into port/notes-float
Owner

Fixes #1127 (item 1). Into port/notes-float (base d4266e8d5). Do not merge until the Safari evidence is posted (see comments).

Cause (measured)

Opening a note with the mouse calls fadeIn(host) → swapTabs → fadeable(host). The page card's glass (.cm-sheet, the see-through blur) is drawn by the CodeMirror cm-paper layer a frame AFTER the text goes in, so at that moment the host holds no glass element. fadeable found none and returned [host], so the whole editor faded and the blur dropped for 140 ms. Chromium probe on the base (Immersive and Faded, see-through 80 %, 20 px): the one animation is on cm-host, and the card's effective opacity goes 1 → 0.19/0.52/0.96 → 1 while backdrop-filter: blur(20px) stays set; there is a frame with 0 sheets.

Fix

fadeable(root, holds) (lib/motion.ts) takes a selector for containers whose glass is not built yet and splits them like glass; fadeIn passes .cm-paper. Only the glass-free text parts (cm-content, cursor/selection layers…) fade; the paper layer and its ancestors are never animated. Reuses glass-rules and the fadeable split; no new mechanism. The switching spec now also rejects a fade on cm-host/cm-editor/cm-scroller/cm-paper (it failed on the base for the Narrow default only by luck of the old check).

Fixes #1127 (item 1). Into `port/notes-float` (base d4266e8d5). Do not merge until the Safari evidence is posted (see comments). ## Cause (measured) Opening a note with the mouse calls `fadeIn(host)` → `swapTabs` → `fadeable(host)`. The page card's glass (`.cm-sheet`, the see-through blur) is drawn by the CodeMirror `cm-paper` layer a frame AFTER the text goes in, so at that moment the host holds no glass element. `fadeable` found none and returned `[host]`, so the whole editor faded and the blur dropped for 140 ms. Chromium probe on the base (Immersive and Faded, see-through 80 %, 20 px): the one animation is on `cm-host`, and the card's effective opacity goes 1 → 0.19/0.52/0.96 → 1 while `backdrop-filter: blur(20px)` stays set; there is a frame with 0 sheets. ## Fix `fadeable(root, holds)` (lib/motion.ts) takes a selector for containers whose glass is not built yet and splits them like glass; `fadeIn` passes `.cm-paper`. Only the glass-free text parts (`cm-content`, cursor/selection layers…) fade; the paper layer and its ancestors are never animated. Reuses `glass-rules` and the `fadeable` split; no new mechanism. The switching spec now also rejects a fade on `cm-host`/`cm-editor`/`cm-scroller`/`cm-paper` (it failed on the base for the Narrow default only by luck of the old check).
web: opening a note fades its text parts, never the page card's glass; the card's layer is split before its glass is drawn (#1127)
Some checks failed
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
afbf57695e
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator (Safari capture in #1127 comment 96341). Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator (Safari capture in #1127 comment 96341). Closing.
kayg closed this pull request 2026-11-14 13:12:23 +00:00
Some checks failed
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

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