Notes Float: opening a note with the mouse blinks the see-through page blur for 140 ms #1127

Closed
opened 2026-11-14 06:30:35 +00:00 by kayg · 4 comments
Owner

Found by the 1b lane (#1107, 14 Nov). Since slice 4 (#1100), opening a note with the mouse fades the editor (opacity, 140 ms), and the see-through page blur (Immersive/Faded backdrop-filter) sits inside that faded subtree, so the blur drops out for the length of the fade. Old and new fade code both do it.

Expected: the blur stays; only the text parts fade (glass never fades, #287).

Repro: real Safari, port/notes-float, Faded or Immersive on, click a note in the list.

Also noted: on dev's Contacts screen the open card's top bar is glass sitting on the glass card frame (double glass).

Found by the 1b lane (#1107, 14 Nov). Since slice 4 (#1100), opening a note with the mouse fades the editor (opacity, 140 ms), and the see-through page blur (Immersive/Faded `backdrop-filter`) sits inside that faded subtree, so the blur drops out for the length of the fade. Old and new fade code both do it. Expected: the blur stays; only the text parts fade (glass never fades, #287). Repro: real Safari, `port/notes-float`, Faded or Immersive on, click a note in the list. Also noted: on dev's Contacts screen the open card's top bar is glass sitting on the glass card frame (double glass).
Author
Owner

#1127 interim (PR #1128, head afbf57695, base d4266e8d5)

Cause, measured (Chromium probe, dev-01, see-through 80 %/20 px, Immersive and Faded, mouse click on a list row; every rAF frame sampled):

  • base: the one animation is on cm-host; the card's effective opacity (product up the ancestors) goes 1 → 0.19 (Faded) / 0.52 → 0.96 → 1 across the fade, with a frame that has 0 sheets. At that moment the stylesheet says the card is glass but the element is not built yet (the cm-paper layer draws it a frame after the text is put in), so fadeable() found no glass and returned the whole host.
  • fix: animations are cm-announced, cm-content, cursor/selection/block-sel layers only; the card's effective opacity is 1 on every frame (31 of 34 frames before the click, 2 after, plus the 0-sheet frame in which the layer redraws); backdrop-filter: blur(20px) stays on every sheet frame.

Gates so far (server built from base d4266e8d5 on dev-01): specs switching, keys-no-motion, glass, glass-roots, adaptive-glass, backdrop-page, backdrops, style-background, style-card-box, style-sheet, style-presets, --workers=1 --retries=0: chromium-1440 67 passed (4 skipped); chromium-390 46 passed (25 skipped). svelte-check 0 errors / 20 warnings (same as base). vitest 297 passed. Bundle gate (perf/web.sh --bundle-only --gate): total JS brotli 547.196 (base) → 547.247 (+0.05 KB). The gate prints over budget on BOTH: base chunk.index 231.523 > 231.5, this branch chunk.hidden-ui 2.466 > 2.462 (a chunk this PR does not touch; chunk regrouping noise). Base already fails the gate.

Blocked right now: the whole Mac Studio side (dev-02, macos-01, std) has been unreachable since about 07:35 CEST (no route to host, 10.69.69.37/.122/.222). WebKit gates and the real-Safari capture + ABAB wait for it; I keep retrying.

Contacts double glass: to follow.

# #1127 interim (PR #1128, head afbf57695, base d4266e8d5) **Cause, measured (Chromium probe, dev-01, see-through 80 %/20 px, Immersive and Faded, mouse click on a list row; every rAF frame sampled):** - base: the one animation is on `cm-host`; the card's effective opacity (product up the ancestors) goes 1 → 0.19 (Faded) / 0.52 → 0.96 → 1 across the fade, with a frame that has 0 sheets. At that moment the stylesheet says the card is glass but the element is not built yet (the `cm-paper` layer draws it a frame after the text is put in), so `fadeable()` found no glass and returned the whole host. - fix: animations are `cm-announced`, `cm-content`, cursor/selection/block-sel layers only; the card's effective opacity is 1 on every frame (31 of 34 frames before the click, 2 after, plus the 0-sheet frame in which the layer redraws); `backdrop-filter: blur(20px)` stays on every sheet frame. **Gates so far (server built from base d4266e8d5 on dev-01):** specs switching, keys-no-motion, glass, glass-roots, adaptive-glass, backdrop-page, backdrops, style-background, style-card-box, style-sheet, style-presets, `--workers=1 --retries=0`: chromium-1440 67 passed (4 skipped); chromium-390 46 passed (25 skipped). svelte-check 0 errors / 20 warnings (same as base). vitest 297 passed. Bundle gate (`perf/web.sh --bundle-only --gate`): total JS brotli 547.196 (base) → 547.247 (+0.05 KB). The gate prints `over budget` on BOTH: base `chunk.index` 231.523 > 231.5, this branch `chunk.hidden-ui` 2.466 > 2.462 (a chunk this PR does not touch; chunk regrouping noise). Base already fails the gate. **Blocked right now:** the whole Mac Studio side (dev-02, macos-01, std) has been unreachable since about 07:35 CEST (`no route to host`, 10.69.69.37/.122/.222). WebKit gates and the real-Safari capture + ABAB wait for it; I keep retrying. **Contacts double glass:** to follow.
Author
Owner

#1127 status after 3 h of waiting (PR #1128, head afbf57695)

Done and gated: the fix, the strengthened switching spec, chromium-1440/390 specs, svelte-check, vitest, bundle gate (numbers in my earlier comment).

NOT done, because the Mac Studio side has been unreachable since ~07:35 CEST (no route to host for std, dev-02-std and macos-01-std; dev-01 and perf-01 reachable; retried every ~30 s for more than 3 h):

  • webkit-1440/390 specs on dev-02 (no server binary could be built there either);
  • the real-Safari frame-by-frame capture of a mouse note open with Faded on, and the open-note worst-frame ABAB (8 cycles) vs the base on macos-01. Neither was started, so no Mac lock was taken and nothing needs cleaning there.
    The perf session was not run: the change is in fadeIn's fade-part choice only (a pointer-only path, no per-key or hot path; keys never reach it). The Chromium probe shows the same fade parts as a switch to Tasks/Contacts, no extra work per frame.
    Please re-run those three items when std is back (the Chromium probe: cm-host animated on the base, only text parts on the branch). PR #1128 should not merge before the Safari capture shows the blur staying.

Contacts double glass (second item): left alone, no change. On port/notes-float the code is the same as dev: ContactsScreen.svelte .frame carries the card's glass (--glass-strong + backdrop blur) and ContactTop.svelte puts a Pill (its own glass) at the frame's top-right corner, over the paper .page rather than directly over the frame fill in most of its area. What reads as a glass top bar on glass is a visual call I cannot make without real Safari (Playwright WebKit paints no backdrop-filter, Mac unreachable), and the fix is not small (the pill is the shared Pill, and moving or flattening it changes the approved card layout). Needs a Safari look first; then likely a Contacts-only change to ContactTop/.frame.

# #1127 status after 3 h of waiting (PR #1128, head afbf57695) **Done and gated:** the fix, the strengthened switching spec, chromium-1440/390 specs, svelte-check, vitest, bundle gate (numbers in my earlier comment). **NOT done, because the Mac Studio side has been unreachable since ~07:35 CEST (`no route to host` for std, dev-02-std and macos-01-std; dev-01 and perf-01 reachable; retried every ~30 s for more than 3 h):** - webkit-1440/390 specs on dev-02 (no server binary could be built there either); - the real-Safari frame-by-frame capture of a mouse note open with Faded on, and the open-note worst-frame ABAB (8 cycles) vs the base on macos-01. Neither was started, so no Mac lock was taken and nothing needs cleaning there. The perf session was not run: the change is in `fadeIn`'s fade-part choice only (a pointer-only path, no per-key or hot path; keys never reach it). The Chromium probe shows the same fade parts as a switch to Tasks/Contacts, no extra work per frame. Please re-run those three items when std is back (the Chromium probe: `cm-host` animated on the base, only text parts on the branch). PR #1128 should not merge before the Safari capture shows the blur staying. **Contacts double glass (second item): left alone, no change.** On `port/notes-float` the code is the same as dev: `ContactsScreen.svelte` `.frame` carries the card's glass (`--glass-strong` + backdrop blur) and `ContactTop.svelte` puts a `Pill` (its own glass) at the frame's top-right corner, over the paper `.page` rather than directly over the frame fill in most of its area. What reads as a glass top bar on glass is a visual call I cannot make without real Safari (Playwright WebKit paints no backdrop-filter, Mac unreachable), and the fix is not small (the pill is the shared `Pill`, and moving or flattening it changes the approved card layout). Needs a Safari look first; then likely a Contacts-only change to `ContactTop`/`.frame`.
Author
Owner

#1127 / PR #1128: real Safari + WebKit results (head 8c13ae13a = port/notes-float 8e7611ad7 merged in, plus fix afbf57695)

Real Safari on macos-01 (Mac lock held for the run only; Safari, safaridriver and my servers quit/stopped in the exit trap; lock freed)

Setup: 1440×900, light, notes with calternal-page-opacity: 80%, calternal-page-blur: 20px, calternal-background-effect: faded; dist built from the base (8e7611ad7) and from the branch; same server binary for both; a mouse click (WebDriver pointer) on a list row; blank page ran 120 rAF in 2 s first.

Frame by frame (every rAF frame after the click; card = every .cm-sheet, effective opacity = product of opacity up the ancestors):

arm frames lowest card opacity frames below 0.99 animated element
base 75 0.661 5 cm-host (the whole editor)
fix 84 1.0 0 cm-announced, cm-content, cursor / selection / block-selection layers only
(One frame has 0 sheets in both arms: the layer redraws the card there. backdrop-filter: blur(20px) stays on every sheet frame in both; the loss is the faded ancestor, which the table shows.)

Mid-fade shots (the 140 ms fade paused at 70 ms, Faded on): base shows the sharp backdrop (stars) through the card, blur gone; the fix shows the card frosted while its text is half faded.

Open-note worst frame, ABAB ×8, one session (rAF deltas over 0.9 s after the click, plain recorder)

base: 46, 46, 48, 49, 58, 71, 74, 81 (median 53.5, max 81, 8 frames over 33 ms, 4 over 50 ms)
fix: 28, 29, 36, 46, 48, 51, 57, 59 (median 47.0, max 59, 6 over 33 ms, 3 over 50 ms)
Fix is not worse (median −6.5 ms, max −22 ms). Caveat: no separate idle baseline in this session; the blank-page baseline itself shows a 117 ms frame, so single frames above 50 ms are VM noise as well. A first run (before I fixed the row choice: it clicked contact notes without see-through) gave the same direction (median 66.5 → 50.5).

WebKit (dev-02, server built from base 8e7611ad7, --workers=1 --retries=0)

Specs: switching, keys-no-motion, glass, glass-roots, adaptive-glass, backdrop-page, backdrops, style-background, style-card-box, style-sheet, style-presets. webkit-1440: 67 passed, 4 skipped. webkit-390: 46 passed, 25 skipped.
Re-run on the merged head, dev-01 chromium (server from base): chromium-1440 67 passed (4 skipped), chromium-390 46 passed (25 skipped). svelte-check 0 errors / 20 warnings, vitest 308 passed, bundle gate green on the merged head (total JS brotli 559.791, p95 ≤ 568.272, no "over budget").

Contacts card top bar (second item)

Real Safari, port/notes-float + fix, light, Contacts open on a card: the card frame is the one glass (the thin rim around the paper card); the only thing in the top corner is a single round ⋯ pill sitting on the paper. There is no glass top bar on the glass frame here (shot attached), so nothing to fix on this branch. If kayg saw it on dev's Contacts (older layout), it needs a screenshot of that state.

# #1127 / PR #1128: real Safari + WebKit results (head 8c13ae13a = port/notes-float 8e7611ad7 merged in, plus fix afbf57695) ## Real Safari on macos-01 (Mac lock held for the run only; Safari, safaridriver and my servers quit/stopped in the exit trap; lock freed) Setup: 1440×900, light, notes with `calternal-page-opacity: 80%`, `calternal-page-blur: 20px`, `calternal-background-effect: faded`; dist built from the base (8e7611ad7) and from the branch; same server binary for both; a mouse click (WebDriver pointer) on a list row; blank page ran 120 rAF in 2 s first. **Frame by frame (every rAF frame after the click; card = every `.cm-sheet`, effective opacity = product of opacity up the ancestors):** | arm | frames | lowest card opacity | frames below 0.99 | animated element | |---|---|---|---|---| | base | 75 | **0.661** | **5** | `cm-host` (the whole editor) | | fix | 84 | 1.0 | 0 | `cm-announced`, `cm-content`, cursor / selection / block-selection layers only | (One frame has 0 sheets in both arms: the layer redraws the card there. `backdrop-filter: blur(20px)` stays on every sheet frame in both; the loss is the faded ancestor, which the table shows.) **Mid-fade shots** (the 140 ms fade paused at 70 ms, Faded on): base shows the sharp backdrop (stars) through the card, blur gone; the fix shows the card frosted while its text is half faded. ## Open-note worst frame, ABAB ×8, one session (rAF deltas over 0.9 s after the click, plain recorder) base: 46, 46, 48, 49, 58, 71, 74, 81 (median 53.5, max 81, 8 frames over 33 ms, 4 over 50 ms) fix: 28, 29, 36, 46, 48, 51, 57, 59 (median 47.0, max 59, 6 over 33 ms, 3 over 50 ms) Fix is not worse (median −6.5 ms, max −22 ms). Caveat: no separate idle baseline in this session; the blank-page baseline itself shows a 117 ms frame, so single frames above 50 ms are VM noise as well. A first run (before I fixed the row choice: it clicked contact notes without see-through) gave the same direction (median 66.5 → 50.5). ## WebKit (dev-02, server built from base 8e7611ad7, `--workers=1 --retries=0`) Specs: switching, keys-no-motion, glass, glass-roots, adaptive-glass, backdrop-page, backdrops, style-background, style-card-box, style-sheet, style-presets. webkit-1440: 67 passed, 4 skipped. webkit-390: 46 passed, 25 skipped. Re-run on the merged head, dev-01 chromium (server from base): chromium-1440 67 passed (4 skipped), chromium-390 46 passed (25 skipped). svelte-check 0 errors / 20 warnings, vitest 308 passed, bundle gate green on the merged head (total JS brotli 559.791, p95 ≤ 568.272, no "over budget"). ## Contacts card top bar (second item) Real Safari, `port/notes-float` + fix, light, Contacts open on a card: the card frame is the one glass (the thin rim around the paper card); the only thing in the top corner is a single round ⋯ pill sitting on the paper. There is no glass top bar on the glass frame here (shot attached), so nothing to fix on this branch. If kayg saw it on dev's Contacts (older layout), it needs a screenshot of that state.
Author
Owner

Fixed by #1128 (merged into port/notes-float). The Contacts double glass did not reproduce on port/notes-float in real Safari; closing. Reopen with a screenshot of the state if it shows up again.

Fixed by #1128 (merged into `port/notes-float`). The Contacts double glass did not reproduce on `port/notes-float` in real Safari; closing. Reopen with a screenshot of the state if it shows up again.
kayg closed this issue 2026-11-14 13:12:24 +00:00
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#1127
No description provided.