e2e: fix backdrop-page and sheet-geometry specs on port/notes-float #1120

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

Fixes the two real failures the early full suite found on port/notes-float @ 4f0b58327 (#1088 comment 95829). Specs only, no product change.

1. backdrop-page.spec.ts:79 / :145 (look-chromium-1440, look-webkit-1440). Two .surface .backdrop elements are intended. Slice 1b's global layer (GlobalLayer.svelte: <Backdrop follower frost /> in a .bake div, "laid out but never painted") is the one Backdrop that makes the blurred picture the window's global layer paints (commits 554b721de, a1d870088, 5a198d1eb). It is hollow once the baked picture exists (no live scene nodes, so no doubled paint cost) and carries data-frost. The live one has no data-frost. The spec now targets .surface .backdrop:not([data-frost]) (LIVE_BACKDROP).
(The baked class in the failure note is a different thing: it marks any backdrop with a soft picture. Both backdrops have it, so it is not a usable discriminator.)

2. sheet-geometry.spec.ts:202 (webkit-390). 0.66 is the intended value. glass.css (slice 7, 9ce6b083a "the adaptive glass tops out at the approved mockup's alphas (float 0.55, dense 0.66)") runs the dense alpha from --glass-base-dense (0.48 calm) up to --max 0.66 as --glass-busy rises. The sheet sits over words, so busy is high on a phone. The tint is unchanged and the sheet is still the shared <Glass dense> (no paper). The spec asserted the old constant; it now asserts the rule: tint equals --glass-tint-dense, --max = 0.66, 0 <= busy <= 1, alpha = calm + (max - calm) * busy, no background image, backdrop blur present.

Gates (binary = nfr-new build of 4f0b58327; worktree nfsf at the PR head)

  • dev-01 chromium: playwright test sheet-geometry adaptive-glass glass.spec backdrops window-layout backdrop-page --project=chromium-1440 --project=chromium-390 --workers=1: 56 passed, 16 skipped (admin-only).
  • dev-02 webkit: same with webkit-1440/390: 56 passed, 16 skipped (sheet-geometry:202 passes on webkit-390).
  • look projects (throwaway config outside the repo, dependencies removed): look-chromium-1440/390 10 passed; look-webkit-1440/390 8 passed, 2 skipped (the layout-count test, webkit-only skip).
  • bun run check (svelte-check + action types): exit 0, 0 errors. vitest run: 28 files, 267 tests passed.
  • No product CSS/JS changed, so no Safari or iPhone-sim shots are needed.

Open risk: none known. Not merged.

🤖 Generated with Claude Code

Fixes the two real failures the early full suite found on `port/notes-float` @ 4f0b58327 (#1088 comment 95829). **Specs only, no product change.** **1. `backdrop-page.spec.ts:79` / `:145`** (look-chromium-1440, look-webkit-1440). Two `.surface .backdrop` elements are intended. Slice 1b's global layer (`GlobalLayer.svelte`: `<Backdrop follower frost />` in a `.bake` div, "laid out but never painted") is the one Backdrop that makes the blurred picture the window's global layer paints (commits 554b721de, a1d870088, 5a198d1eb). It is hollow once the baked picture exists (no live scene nodes, so no doubled paint cost) and carries `data-frost`. The live one has no `data-frost`. The spec now targets `.surface .backdrop:not([data-frost])` (`LIVE_BACKDROP`). (The `baked` class in the failure note is a different thing: it marks any backdrop with a soft picture. Both backdrops have it, so it is not a usable discriminator.) **2. `sheet-geometry.spec.ts:202`** (webkit-390). 0.66 is the intended value. `glass.css` (slice 7, 9ce6b083a "the adaptive glass tops out at the approved mockup's alphas (float 0.55, dense 0.66)") runs the dense alpha from `--glass-base-dense` (0.48 calm) up to `--max` 0.66 as `--glass-busy` rises. The sheet sits over words, so busy is high on a phone. The tint is unchanged and the sheet is still the shared `<Glass dense>` (no paper). The spec asserted the old constant; it now asserts the rule: tint equals `--glass-tint-dense`, `--max` = 0.66, `0 <= busy <= 1`, alpha = calm + (max - calm) * busy, no background image, backdrop blur present. **Gates** (binary = nfr-new build of 4f0b58327; worktree `nfsf` at the PR head) - dev-01 chromium: `playwright test sheet-geometry adaptive-glass glass.spec backdrops window-layout backdrop-page --project=chromium-1440 --project=chromium-390 --workers=1`: 56 passed, 16 skipped (admin-only). - dev-02 webkit: same with `webkit-1440/390`: 56 passed, 16 skipped (`sheet-geometry:202` passes on webkit-390). - look projects (throwaway config outside the repo, dependencies removed): `look-chromium-1440/390` 10 passed; `look-webkit-1440/390` 8 passed, 2 skipped (the layout-count test, webkit-only skip). - `bun run check` (svelte-check + action types): exit 0, 0 errors. `vitest run`: 28 files, 267 tests passed. - No product CSS/JS changed, so no Safari or iPhone-sim shots are needed. Open risk: none known. Not merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
e2e: backdrop-page targets the live backdrop (not the global layer's bake); sheet-geometry asserts the adaptive dense-glass rule
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
a424941eff
Author
Owner

Merged into port/notes-float with --no-ff at d39445f06 by the orchestrator (spec-only change; gates in the description). Closing.

Merged into `port/notes-float` with `--no-ff` at `d39445f06` by the orchestrator (spec-only change; gates in the description). Closing.
kayg closed this pull request 2026-11-14 01:44:48 +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!1120
No description provided.