Notes Float: slice 4 follow-up (keys stop the --fade crossfade; switching spec follows the glass-aware fade) #1121

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

Fixes the failures reported by #1116 on port/notes-float (2656c3d08), slice 4 (#1100) fallout.

1. keys-no-motion:217/:234. Slice 4's GlobalLayer put transition: --fade 240ms on .gl, but only .pc pieces had an .instant override. Added .gl.instant { transition: none }. instant is set only for keyboard input or while resizing (WindowLayout), so a mouse change of Immersive/Faded keeps its 240 ms crossfade.

2. switching:135 (chromium-1440). Not the Narrow default. The page card now holds glass (.cm-sheet), so fadeable() (#287: glass never fades) splits the editor's fade into its glass-free text parts (cm-content, cursor/selection layers, cm-announced) instead of animating .cm-host. The decided behaviour is unchanged (opacity only, 140 ms, mouse only; keyboard none), so the spec was updated: it matches any cm-* part, requires at least one fade, none on cm-sheet, each opacity-only and at most 150 ms.

3. pane-transition:431 chromium-390 flaky: not touched here; counts go to #1087.

Gates (server built from this branch, base 2656c3d08; specs: keys-no-motion, switching, keys-rings, keys-tab, keyboard, note-bars-motion, frontmatter-unreachable, note-bars, opacity, style-background, style-card-box, style-presets, style-sheet, width; --workers=1):

  • chromium-1440 (dev-01): all pass (83 pass, 20 skipped; one opacity case failed only from two runs sharing test-results, rerun of opacity + keys-no-motion 28/28 green).
  • chromium-390 (dev-01): 54 passed, 50 skipped, 0 failed.
  • webkit-1440 (dev-02): 81 passed + opacity rerun 13/13 (same artefact collision), 0 real failures.
  • webkit-390 (dev-02): 52 passed, 52 skipped, 0 failed.
  • bun run check: 0 errors (19 existing warnings); bun run test (vitest): no failures; bundle: first paint JS 229.2 KB brotli, unchanged vs residuals 229.227.
  • ci/check-size-budgets.mjs lists Rust and editing.svelte.ts (504 > 500) growth that this PR doesn't touch (inherited from the branch).

No perf run: the change is one CSS rule, active only under .instant, so it removes a transition and adds no layers, no JS and no paint work on typing or list scroll (those stay as on 2656c3d08). No Safari check: the painted result is unchanged; the rule only removes a transition during keyboard/resizing input, which the spec checks on computed style. Mouse path untouched.

Do not merge until reviewed.

🤖 Generated with Claude Code

Fixes the failures reported by #1116 on `port/notes-float` (2656c3d08), slice 4 (#1100) fallout. **1. keys-no-motion:217/:234.** Slice 4's `GlobalLayer` put `transition: --fade 240ms` on `.gl`, but only `.pc` pieces had an `.instant` override. Added `.gl.instant { transition: none }`. `instant` is set only for keyboard input or while resizing (`WindowLayout`), so a mouse change of Immersive/Faded keeps its 240 ms crossfade. **2. switching:135 (chromium-1440).** Not the Narrow default. The page card now holds glass (`.cm-sheet`), so `fadeable()` (#287: glass never fades) splits the editor's fade into its glass-free text parts (`cm-content`, cursor/selection layers, `cm-announced`) instead of animating `.cm-host`. The decided behaviour is unchanged (opacity only, 140 ms, mouse only; keyboard none), so the spec was updated: it matches any `cm-*` part, requires at least one fade, none on `cm-sheet`, each opacity-only and at most 150 ms. **3. pane-transition:431 chromium-390** flaky: not touched here; counts go to #1087. **Gates** (server built from this branch, base 2656c3d08; specs: keys-no-motion, switching, keys-rings, keys-tab, keyboard, note-bars-motion, frontmatter-unreachable, note-bars, opacity, style-background, style-card-box, style-presets, style-sheet, width; `--workers=1`): - chromium-1440 (dev-01): all pass (83 pass, 20 skipped; one opacity case failed only from two runs sharing `test-results`, rerun of opacity + keys-no-motion 28/28 green). - chromium-390 (dev-01): 54 passed, 50 skipped, 0 failed. - webkit-1440 (dev-02): 81 passed + opacity rerun 13/13 (same artefact collision), 0 real failures. - webkit-390 (dev-02): 52 passed, 52 skipped, 0 failed. - `bun run check`: 0 errors (19 existing warnings); `bun run test` (vitest): no failures; bundle: first paint JS 229.2 KB brotli, unchanged vs residuals 229.227. - `ci/check-size-budgets.mjs` lists Rust and `editing.svelte.ts` (504 > 500) growth that this PR doesn't touch (inherited from the branch). **No perf run:** the change is one CSS rule, active only under `.instant`, so it removes a transition and adds no layers, no JS and no paint work on typing or list scroll (those stay as on 2656c3d08). **No Safari check:** the painted result is unchanged; the rule only removes a transition during keyboard/resizing input, which the spec checks on computed style. Mouse path untouched. Do not merge until reviewed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
switching.spec: the mouse fade runs on the text parts beside the page glass (opacity only, as #287 decided)
Some checks failed
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-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
cfa28e2d31
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator (CSS rule + spec; gates in the lane report). Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator (CSS rule + spec; gates in the lane report). Closing.
kayg closed this pull request 2026-11-14 04:33:00 +00:00
Some checks failed
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-native-contract (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!1121
No description provided.