fix(chrome): the title and the capsule crossfade (exactly one shows); nothing of the page shows in the bar zone #1002

Closed
kayg wants to merge 3 commits from t3/fix-condensed-title-visibility into dev
Owner

kayg, 11-07 11:51 IST, prod iPhone: on an empty daily note the top pill said "Saturday, 7 November" while the big title was still on screen, crisp, at the pills' row.

The rule (orchestrator ruling)

At any moment exactly one of these shows: the readable page title, or the title pill. The title is readable only while all of it is below the pills' row (below visualViewport.offsetTop + status bar + the pill row). Anything above that line is under the bar: the pill shows and the page must not show there.

Root cause

Tapping + (Write) on the note puts the caret in and the keyboard up; iOS pans the view to the caret and lifts the whole card up into the bar zone (status bar and pill row). The pills and the band are held at the top of what you see (holdAtVisualTop), but the card's text was not kept out of that zone: the band is only a light blur (3 px at the top, ~0.7 px at the pills' bottom edge, by design), so the title sat there crisp behind the pill. In the simulator the same pan with a bigger lift only blurs it (the first screenshot of the earlier round); on kayg's phone the lift was smaller and the title was readable. Also, the tracker measured where the card is only when the note's content changed, so a measure taken during a pan could stay wrong after it.

Fix (chrome/header/headings.ts)

  • The title is "readable" only while its top is below the pills' bottom edge (edge, in the visual-viewport frame): the capsule takes over as soon as any of it goes under. Section headings keep the bottom-edge rule.
  • When the card is lifted into the bar zone (cardTop < edge) the note's text is cut at the pills' bottom edge (clip-path on the .cm-scroller, set only then, so the normal layout has none and the glass is untouched). Nothing of the page shows behind or above the pills.
  • The box is measured again when visualViewport fires resize or scroll (the keyboard, a pan), rAF-coalesced, so a stale measure cannot stay. No layout read in the scroll handler.
  • The earlier clamp (min(edge, max(cardTop, 0))) is gone: it left neither the title nor the capsule readable in the panned state.
  • Crossfade (orchestrator ruling): whenever the capsule shows, the page's own title fades to opacity 0, and fades back in as the capsule goes: opacity only, on the title element alone (the date heading, the title line, or a list's h1), 150 ms on var(--ease-out), instant on first look, when the editor redraws the line, and with Reduce Motion. No layout change (the title keeps its space), no mask on the scroller, the text below never fades. So there is never a half-title next to the capsule.
  • Lists (title.ts): same threshold (the capsule takes over as soon as any of the title goes under the pills: IntersectionObserver ratio < 0.99, horizontal margins opened wide so side clipping does not count) and the same fade. The observer watches the list's h1 (the marked block also holds the room under the pills and, in Trash, its buttons, so it is not the thing that fades).
  • Mail, Files, Contacts, Tasks, Settings: none has a condensed title of its own on dev; they get the rule by using the shared trackers.

Also in this PR (first-paint neutral, review round): block-jobs.ts, the make-a-note and move-to-note server jobs, loads on first use (−740 B of first-paint JS brotli); budgets as funded in a5798af32.

Gates (head 77c81db6b)

gate result
perf/web.sh --bundle-only --gate (dev 4ed2b2788) exit 0. First-paint JS brotli dev 231,028 B → PR 230,777 B (−251 B); raw 814,071 → 812,633; gzip 271,746 → 271,292; first-paint CSS 18,386 B both. chunk.index 225.368 KB (cap 226.25), chunk.idle-screens 51.560 (dev 51.570, cap 51.8), chunk.block-jobs 1.198 (1.25), total_js_brotli 473.07 (488.3).
specs, 4 projects title-pill list-chrome page-chrome trash-header-geometry note-pills day chrome-blur phone-edges: webkit-390 174 passed, chromium-390 175, webkit-1440 9, chromium-1440 9, 0 failed. The new spec asserts, at every pan and scroll step, that exactly one of the readable title and the capsule shows, that the title's opacity is 0 with the capsule and 1 without, that the body text never fades, that a lifted card is cut; a list test does the same for the list title. The cut's specs (links flow smart-note editor bar-taps + title-pill): chromium-1440 23, chromium-390 21, webkit-1440 20, webkit-390 18 passed, 0 failed.
bun run check / lint / unit 0 errors (16 warnings as on dev) / 23 pass / 166 pass
Mac VM, real Safari, ABAB ×3 vs dev see the comment: scroll PR 0 frames ≥ 50 ms, p95 19 ms (dev one 114 ms outlier); typing flat
iOS simulator 2× crops in the comment: title only at the top and scrolled back, capsule only with the title half under and further

Also in this PR: block-jobs.ts (make-a-note and move-to-note jobs load on first use; one import site in editing.svelte.ts). Budgets as funded in a5798af32, untouched.

kayg, 11-07 11:51 IST, prod iPhone: on an empty daily note the top pill said "Saturday, 7 November" while the big title was still on screen, crisp, at the pills' row. ## The rule (orchestrator ruling) At any moment exactly one of these shows: the readable page title, or the title pill. The title is readable only while all of it is below the pills' row (below `visualViewport.offsetTop` + status bar + the pill row). Anything above that line is under the bar: the pill shows and the page must not show there. ## Root cause Tapping `+` (Write) on the note puts the caret in and the keyboard up; iOS pans the view to the caret and lifts the whole card up into the bar zone (status bar and pill row). The pills and the band are held at the top of what you see (`holdAtVisualTop`), but the card's text was not kept out of that zone: the band is only a light blur (3 px at the top, ~0.7 px at the pills' bottom edge, by design), so the title sat there crisp behind the pill. In the simulator the same pan with a bigger lift only blurs it (the first screenshot of the earlier round); on kayg's phone the lift was smaller and the title was readable. Also, the tracker measured where the card is only when the note's content changed, so a measure taken during a pan could stay wrong after it. ## Fix (`chrome/header/headings.ts`) - The title is "readable" only while its top is below the pills' bottom edge (`edge`, in the visual-viewport frame): the capsule takes over as soon as any of it goes under. Section headings keep the bottom-edge rule. - When the card is lifted into the bar zone (`cardTop < edge`) the note's text is cut at the pills' bottom edge (`clip-path` on the `.cm-scroller`, set only then, so the normal layout has none and the glass is untouched). Nothing of the page shows behind or above the pills. - The box is measured again when `visualViewport` fires `resize` or `scroll` (the keyboard, a pan), rAF-coalesced, so a stale measure cannot stay. No layout read in the scroll handler. - The earlier clamp (`min(edge, max(cardTop, 0))`) is gone: it left neither the title nor the capsule readable in the panned state. - **Crossfade (orchestrator ruling):** whenever the capsule shows, the page's own title fades to opacity 0, and fades back in as the capsule goes: opacity only, on the title element alone (the date heading, the title line, or a list's `h1`), 150 ms on `var(--ease-out)`, instant on first look, when the editor redraws the line, and with Reduce Motion. No layout change (the title keeps its space), no mask on the scroller, the text below never fades. So there is never a half-title next to the capsule. - **Lists (`title.ts`):** same threshold (the capsule takes over as soon as any of the title goes under the pills: IntersectionObserver ratio < 0.99, horizontal margins opened wide so side clipping does not count) and the same fade. The observer watches the list's `h1` (the marked block also holds the room under the pills and, in Trash, its buttons, so it is not the thing that fades). - Mail, Files, Contacts, Tasks, Settings: none has a condensed title of its own on dev; they get the rule by using the shared trackers. Also in this PR (first-paint neutral, review round): `block-jobs.ts`, the make-a-note and move-to-note server jobs, loads on first use (−740 B of first-paint JS brotli); budgets as funded in `a5798af32`. ## Gates (head `77c81db6b`) | gate | result | |---|---| | `perf/web.sh --bundle-only --gate` (dev `4ed2b2788`) | exit 0. First-paint JS brotli **dev 231,028 B → PR 230,777 B (−251 B)**; raw 814,071 → 812,633; gzip 271,746 → 271,292; first-paint CSS 18,386 B both. `chunk.index` 225.368 KB (cap 226.25), `chunk.idle-screens` 51.560 (dev 51.570, cap 51.8), `chunk.block-jobs` 1.198 (1.25), `total_js_brotli` 473.07 (488.3). | | specs, 4 projects | `title-pill list-chrome page-chrome trash-header-geometry note-pills day chrome-blur phone-edges`: webkit-390 174 passed, chromium-390 175, webkit-1440 9, chromium-1440 9, 0 failed. The new spec asserts, at every pan and scroll step, that exactly one of the readable title and the capsule shows, that the title's opacity is 0 with the capsule and 1 without, that the body text never fades, that a lifted card is cut; a list test does the same for the list title. The cut's specs (`links flow smart-note editor bar-taps` + `title-pill`): chromium-1440 23, chromium-390 21, webkit-1440 20, webkit-390 18 passed, 0 failed. | | `bun run check` / lint / unit | 0 errors (16 warnings as on dev) / 23 pass / 166 pass | | Mac VM, real Safari, ABAB ×3 vs dev | see the comment: scroll PR 0 frames ≥ 50 ms, p95 19 ms (dev one 114 ms outlier); typing flat | | iOS simulator 2× crops | in the comment: title only at the top and scrolled back, capsule only with the title half under and further | Also in this PR: `block-jobs.ts` (make-a-note and move-to-note jobs load on first use; one import site in `editing.svelte.ts`). Budgets as funded in `a5798af32`, untouched.
Fails on dev: with the view panned to the caret the capsule says the title while the title is in plain view.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The trackers called a title gone when it passed the pills' bottom edge, even when the whole card had been lifted
under the pills (iOS pans the view to the caret): the title was still drawn above and behind them. The line now
never lies below the card's own top or the window's top, and it is measured again when the view moves (the
keyboard, a pan), so a stale measure cannot linger.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(chrome): title tracker keeps its element non-null for svelte-check
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
7430a2365c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

iOS simulator (iPhone 18 Pro, iOS 27, Home Screen app, 1206×2622 = 3× native). Same steps on the dev build (before) and this branch (after): app opens on today's empty daily note, ✓ (keyboard down), tap +.

Before (dev) after +: the view is panned to the caret and the capsule "Saturday, 7 November" is up while the title is in view.
After (branch) after +: no capsule.

before 1 rest:
before 1 rest
before 2 after +:
before 2 after +
after 1 rest:
after 1 rest
after 2 after +:
after 2 after +

iOS simulator (iPhone 18 Pro, iOS 27, Home Screen app, 1206×2622 = 3× native). Same steps on the dev build (before) and this branch (after): app opens on today's empty daily note, ✓ (keyboard down), tap `+`. Before (dev) after `+`: the view is panned to the caret and the capsule "Saturday, 7 November" is up while the title is in view. After (branch) after `+`: no capsule. before 1 rest: ![before 1 rest](https://git.kayg.org/attachments/dc0d43ec-d67c-466b-86f6-ce67d334a884) before 2 after +: ![before 2 after +](https://git.kayg.org/attachments/26b8318d-cf27-49fd-953a-4bcf5560412c) after 1 rest: ![after 1 rest](https://git.kayg.org/attachments/619f0712-62e1-4694-964b-7db30be58441) after 2 after +: ![after 2 after +](https://git.kayg.org/attachments/137189d2-cc0e-4c75-ae9d-61ee21e3a7cd)
Author
Owner

Mac VM (real Safari via safaridriver) frame run log, dev=A vs branch=B, ABAB, idle baseline each:

free+inactive MB: 3162.67
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)
viewport [ 390, 844, 1 ]
round 1 A scroll {"n":510,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":36} idle {"n":510,"ge50":0,"gt25":1,"p50":17,"p95":21,"p99":23,"max":27} box [ 44793, 778 ] ms 8537 top 30
round 1 B scroll {"n":511,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} idle {"n":512,"ge50":0,"gt25":0,"p50":17,"p95":21,"p99":23,"max":25} box [ 44793, 778 ] ms 8554 top 75
round 2 A scroll {"n":511,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} idle {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":21,"p99":23,"max":24} box [ 44793, 778 ] ms 8543 top 75
round 2 B scroll {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} idle {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":24} box [ 44781, 778 ] ms 8534 top 183
round 3 A scroll {"n":512,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":23} idle {"n":512,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":24,"max":25} box [ 44793, 778 ] ms 8565 top 75
round 3 B scroll {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":24} idle {"n":1020,"ge50":0,"gt25":4,"p50":17,"p95":21,"p99":24,"max":27} box [ 44793, 778 ] ms 8514 top 75
TOTAL A scroll {"n":1533,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":36} idle {"n":1532,"ge50":0,"gt25":1,"p50":17,"p95":21,"p99":23,"max":27}
TOTAL B scroll {"n":1531,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} idle {"n":2042,"ge50":0,"gt25":4,"p50":17,"p95":21,"p99":23,"max":27}
free+inactive MB: 3099.33
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)

First-paint bytes (node scripts/bundle-size.mjs): dev JS brotli 231,091 / gzip 271,847 raw 814,403; branch 231,379 / 272,020 / 815,042; CSS identical 18,416 brotli.

Mac VM (real Safari via safaridriver) frame run log, dev=A vs branch=B, ABAB, idle baseline each: ``` free+inactive MB: 3162.67 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) viewport [ 390, 844, 1 ] round 1 A scroll {"n":510,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":36} idle {"n":510,"ge50":0,"gt25":1,"p50":17,"p95":21,"p99":23,"max":27} box [ 44793, 778 ] ms 8537 top 30 round 1 B scroll {"n":511,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} idle {"n":512,"ge50":0,"gt25":0,"p50":17,"p95":21,"p99":23,"max":25} box [ 44793, 778 ] ms 8554 top 75 round 2 A scroll {"n":511,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} idle {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":21,"p99":23,"max":24} box [ 44793, 778 ] ms 8543 top 75 round 2 B scroll {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} idle {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":24} box [ 44781, 778 ] ms 8534 top 183 round 3 A scroll {"n":512,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":23} idle {"n":512,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":24,"max":25} box [ 44793, 778 ] ms 8565 top 75 round 3 B scroll {"n":510,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":24} idle {"n":1020,"ge50":0,"gt25":4,"p50":17,"p95":21,"p99":24,"max":27} box [ 44793, 778 ] ms 8514 top 75 TOTAL A scroll {"n":1533,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":36} idle {"n":1532,"ge50":0,"gt25":1,"p50":17,"p95":21,"p99":23,"max":27} TOTAL B scroll {"n":1531,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} idle {"n":2042,"ge50":0,"gt25":4,"p50":17,"p95":21,"p99":23,"max":27} free+inactive MB: 3099.33 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) ``` First-paint bytes (`node scripts/bundle-size.mjs`): dev JS brotli 231,091 / gzip 271,847 raw 814,403; branch 231,379 / 272,020 / 815,042; CSS identical 18,416 brotli.
Author
Owner

iOS simulator, same steps (empty daily note, ✓, +), retaken on the final head 2dfe4705b (3× native): no capsule while the title is in view. (The earlier before/after images stay valid for the before state.)

after on the final build

First-paint gate output (perf/web.sh --bundle-only --gate, PR): web.bundle.first_js_brotli 225.179 KB (cap 240), chunk.index 225.179 (cap 225.25), chunk.idle-screens 51.768 (51.8), chunk.block-jobs 1.206 (1.25), total_js_brotli 473.227 (488.3): exit 0. Dev 98f14a3d1: first-paint JS brotli 231,091 B (225.675 KB).

iOS simulator, same steps (empty daily note, ✓, `+`), retaken on the final head `2dfe4705b` (3× native): no capsule while the title is in view. (The earlier before/after images stay valid for the `before` state.) ![after on the final build](https://git.kayg.org/attachments/4c4cf987-8539-4dc9-8a42-03970e727a6e) First-paint gate output (`perf/web.sh --bundle-only --gate`, PR): `web.bundle.first_js_brotli` 225.179 KB (cap 240), `chunk.index` 225.179 (cap 225.25), `chunk.idle-screens` 51.768 (51.8), `chunk.block-jobs` 1.206 (1.25), `total_js_brotli` 473.227 (488.3): exit 0. Dev `98f14a3d1`: first-paint JS brotli 231,091 B (225.675 KB).
Author
Owner

iOS simulator (iPhone 18 Pro, iOS 27, Home Screen app), 2× crops (804 px wide) of the top 500 pt, head a1a87c508 (after) vs dev 98f14a3d1 (before):

before-1-plus-pans-pill-shows: BEFORE (dev 98f14a3d1), kayg's steps: empty daily note, +: iOS pans, the title is up under the status bar (blurred) and the capsule shows. This is the correct state.
before-1-plus-pans-pill-shows

before-2-scrolled-back-title-readable-no-pill: BEFORE, back to rest: the title is readable, no capsule.
before-2-scrolled-back-title-readable-no-pill

after-1-plus-pans-pill-shows-title-covered: AFTER (head), +: same pan; the capsule shows and the page is cut at the pills' bottom edge, so no title, crisp or blurred, shows behind or above the pills.
after-1-plus-pans-pill-shows-title-covered

after-2-scroll-down: AFTER, scroll down on the empty note (nothing scrolls; same state).
after-2-scroll-down

after-3-scroll-back-title-readable-no-pill: AFTER, scroll back up: the title is readable, no capsule.
after-3-scroll-back-title-readable-no-pill

after-4-keyboard-closed: AFTER, keyboard closed: the title is readable, no capsule.
after-4-keyboard-closed

long-1-top-title-readable-no-pill: AFTER, long note (120 lines) at the top: the title is readable, no capsule.
long-1-top-title-readable-no-pill

long-2-title-half-under-pill-shows: AFTER, long note scrolled so the title is half under the card's top edge: the capsule shows; the lower half of the title is still drawn (see the report).
long-2-title-half-under-pill-shows

long-3-title-gone-pill-shows: AFTER, long note scrolled further: the title is gone, the capsule shows.
long-3-title-gone-pill-shows

keyboard-open-text-cut-at-pills: AFTER, keyboard open and the view panned on a long note: the text is cut at the pills' bottom edge; nothing crisp shows behind the pills; the capsule shows.
keyboard-open-text-cut-at-pills

iOS simulator (iPhone 18 Pro, iOS 27, Home Screen app), 2× crops (804 px wide) of the top 500 pt, head `a1a87c508` (after) vs dev `98f14a3d1` (before): **before-1-plus-pans-pill-shows**: BEFORE (dev `98f14a3d1`), kayg's steps: empty daily note, `+`: iOS pans, the title is up under the status bar (blurred) and the capsule shows. This is the correct state. ![before-1-plus-pans-pill-shows](https://git.kayg.org/attachments/2a8ae115-9b62-49c4-9e52-1dcbab2138cf) **before-2-scrolled-back-title-readable-no-pill**: BEFORE, back to rest: the title is readable, no capsule. ![before-2-scrolled-back-title-readable-no-pill](https://git.kayg.org/attachments/047a74b6-56be-48b9-b4ba-c17a3a2b4d69) **after-1-plus-pans-pill-shows-title-covered**: AFTER (head), `+`: same pan; the capsule shows and the page is cut at the pills' bottom edge, so no title, crisp or blurred, shows behind or above the pills. ![after-1-plus-pans-pill-shows-title-covered](https://git.kayg.org/attachments/5be2ca72-9f3e-431a-b31a-2cbb81b01722) **after-2-scroll-down**: AFTER, scroll down on the empty note (nothing scrolls; same state). ![after-2-scroll-down](https://git.kayg.org/attachments/1a502d40-79ab-434d-8202-2809ed56bbb8) **after-3-scroll-back-title-readable-no-pill**: AFTER, scroll back up: the title is readable, no capsule. ![after-3-scroll-back-title-readable-no-pill](https://git.kayg.org/attachments/781e9c0a-4422-41cc-93dd-7a77dcb7d116) **after-4-keyboard-closed**: AFTER, keyboard closed: the title is readable, no capsule. ![after-4-keyboard-closed](https://git.kayg.org/attachments/5d5abe49-3fa8-4889-97d3-8bcae8328ec6) **long-1-top-title-readable-no-pill**: AFTER, long note (120 lines) at the top: the title is readable, no capsule. ![long-1-top-title-readable-no-pill](https://git.kayg.org/attachments/d69a6c1b-03d0-4790-8f98-878ec98d6048) **long-2-title-half-under-pill-shows**: AFTER, long note scrolled so the title is half under the card's top edge: the capsule shows; the lower half of the title is still drawn (see the report). ![long-2-title-half-under-pill-shows](https://git.kayg.org/attachments/963c2a5a-5604-48cc-9ec5-6db1caa9b704) **long-3-title-gone-pill-shows**: AFTER, long note scrolled further: the title is gone, the capsule shows. ![long-3-title-gone-pill-shows](https://git.kayg.org/attachments/fe19a213-94de-42a0-a8f9-e8b0a1b80447) **keyboard-open-text-cut-at-pills**: AFTER, keyboard open and the view panned on a long note: the text is cut at the pills' bottom edge; nothing crisp shows behind the pills; the capsule shows. ![keyboard-open-text-cut-at-pills](https://git.kayg.org/attachments/dffee4d3-3f78-4592-a145-80f8c3793798)
kayg changed title from fix(chrome): the condensed title pill shows only once the big title is out of view to fix(chrome): exactly one of the readable title and the title pill; nothing of the page shows in the bar zone 2026-11-07 08:40:38 +00:00
Author
Owner

Mac VM (macos-01-std), real Safari via safaridriver, 390×844 window, a 44,793 px note, ABAB ×3 (dev 98f14a3d1 = A, PR head = B), idle baselines, free+inactive memory 3.2 to 3.6 GB, no swap, lock held only during the run.

Phases per arm and round: (1) 6 wheel flings down and back; (2) + → keyboard → scroll: tap Write, then fling while visualViewport resize and scroll events are sent every 50 ms (more than a phone sends; the real viewport object, so the shipped listener runs); (3) typing latency: 80 real key presses, keydown to two frames after the DOM changed.

phase dev (A) PR (B)
scroll frames 1538, ≥ 50 ms: 1 (66 ms, one outlier in round 2), p95 19, max 66 1541, ≥ 50 ms: 0, p95 19, max 31
+ → keyboard → scroll frames 1492, ≥ 50 ms: 0, p95 19, max 26 1493, ≥ 50 ms: 0, p95 19, max 26
idle baseline p95 20, max 25 p95 20, max 26
typing latency n=240, p50 17, p95 28, p99 33, max 35 n=240, p50 17, p95 27, p99 31, max 33

Gate (no frame ≥ 50 ms on the PR, p95 within the idle/dev spread, typing flat): met.

An earlier run of the same script (+ phase driven by real window-height changes instead of events) hitched at 54 to 162 ms on BOTH arms (30 frames on dev, 31 on the PR): those are Safari re-laying out the window, not the page; it is why the second run sends the events directly. Typing in that run: dev p95 29, PR p95 28.

free+inactive MB: 3583.61
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)
viewport [ 390, 844, 1, true ]
round 1 A scroll {"n":512,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":27} | plus {"n":497,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":22,"max":26} | plusIdle {"n":1050,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":24} | type {"n":80,"ge50":0,"gt25":6,"p50":15,"p95":28,"p99":35,"max":35}
round 1 B scroll {"n":513,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":31} | plus {"n":497,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":26} | plusIdle {"n":1050,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} | type {"n":80,"ge50":0,"gt25":4,"p50":15,"p95":26,"p99":33,"max":33}
round 2 A scroll {"n":512,"ge50":1,"gt25":1,"p50":17,"p95":19,"p99":23,"max":66} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":21,"max":23} | plusIdle {"n":521,"ge50":0,"gt25":0,"p50":17,"p95":21,"p99":23,"max":25} | type {"n":80,"ge50":0,"gt25":10,"p50":19,"p95":29,"p99":35,"max":35}
round 2 B scroll {"n":515,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":20,"max":22} | plusIdle {"n":1052,"ge50":0,"gt25":4,"p50":17,"p95":21,"p99":24,"max":26} | type {"n":80,"ge50":0,"gt25":11,"p50":18,"p95":28,"p99":32,"max":32}
round 3 A scroll {"n":514,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} | plus {"n":497,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":20,"max":22} | plusIdle {"n":524,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":23} | type {"n":80,"ge50":0,"gt25":6,"p50":17,"p95":29,"p99":32,"max":32}
round 3 B scroll {"n":513,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":26} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":21} | plusIdle {"n":524,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} | type {"n":80,"ge50":0,"gt25":10,"p50":17,"p95":27,"p99":29,"max":29}
TOTAL A scroll {"n":1538,"ge50":1,"gt25":2,"p50":17,"p95":19,"p99":22,"max":66} scrollIdle {"n":1540,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25}
TOTAL A plus {"n":1492,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":26} plusIdle {"n":2095,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25}
TOTAL A typing latency ms {"n":240,"ge50":0,"gt25":22,"p50":17,"p95":28,"p99":33,"max":35}
TOTAL B scroll {"n":1541,"ge50":0,"gt25":3,"p50":17,"p95":19,"p99":22,"max":31} scrollIdle {"n":3090,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":23,"max":26}
TOTAL B plus {"n":1493,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":26} plusIdle {"n":2626,"ge50":0,"gt25":6,"p50":17,"p95":20,"p99":23,"max":26}
TOTAL B typing latency ms {"n":240,"ge50":0,"gt25":25,"p50":17,"p95":27,"p99":31,"max":33}
free+inactive MB: 3172.8
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)

Resize-driven run:

free+inactive MB: 3398.09
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)
viewport [ 390, 844, 1, true ]
round 1 A scroll {"n":514,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":30} | plus {"n":568,"ge50":11,"gt25":12,"p50":17,"p95":22,"p99":58,"max":64} | plusIdle {"n":1246,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":24,"max":28} | type {"n":80,"ge50":0,"gt25":8,"p50":18,"p95":28,"p99":37,"max":37}
round 1 B scroll {"n":513,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":22,"max":39} | plus {"n":568,"ge50":10,"gt25":14,"p50":17,"p95":21,"p99":57,"max":67} | plusIdle {"n":621,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":24} | type {"n":80,"ge50":0,"gt25":12,"p50":18,"p95":30,"p99":40,"max":40}
round 2 A scroll {"n":514,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} | plus {"n":566,"ge50":8,"gt25":12,"p50":17,"p95":21,"p99":54,"max":162} | plusIdle {"n":1244,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":28} | type {"n":80,"ge50":0,"gt25":14,"p50":18,"p95":30,"p99":39,"max":39}
round 2 B scroll {"n":513,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":23} | plus {"n":574,"ge50":10,"gt25":15,"p50":17,"p95":21,"p99":54,"max":60} | plusIdle {"n":1246,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":26} | type {"n":80,"ge50":0,"gt25":9,"p50":16,"p95":27,"p99":31,"max":31}
round 3 A scroll {"n":514,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":26} | plus {"n":565,"ge50":11,"gt25":14,"p50":17,"p95":20,"p99":61,"max":68} | plusIdle {"n":621,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":23} | type {"n":80,"ge50":0,"gt25":9,"p50":18,"p95":29,"p99":32,"max":32}
round 3 B scroll {"n":512,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":33} | plus {"n":568,"ge50":11,"gt25":14,"p50":17,"p95":21,"p99":58,"max":76} | plusIdle {"n":621,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":23,"max":38} | type {"n":80,"ge50":0,"gt25":15,"p50":20,"p95":28,"p99":34,"max":34}
TOTAL A scroll {"n":1542,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":22,"max":30} scrollIdle {"n":3092,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":22,"max":27}
TOTAL A plus {"n":1699,"ge50":30,"gt25":38,"p50":17,"p95":21,"p99":58,"max":162} plusIdle {"n":3111,"ge50":0,"gt25":6,"p50":17,"p95":20,"p99":23,"max":28}
TOTAL A typing latency ms {"n":240,"ge50":0,"gt25":31,"p50":18,"p95":29,"p99":36,"max":39}
TOTAL B scroll {"n":1538,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":21,"max":39} scrollIdle {"n":2574,"ge50":0,"gt25":6,"p50":17,"p95":21,"p99":23,"max":26}
TOTAL B plus {"n":1710,"ge50":31,"gt25":43,"p50":17,"p95":21,"p99":56,"max":76} plusIdle {"n":2488,"ge50":0,"gt25":3,"p50":17,"p95":20,"p99":23,"max":38}
TOTAL B typing latency ms {"n":240,"ge50":0,"gt25":36,"p50":18,"p95":28,"p99":34,"max":40}
free+inactive MB: 3173.17
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)

Mac VM (macos-01-std), real Safari via safaridriver, 390×844 window, a 44,793 px note, ABAB ×3 (dev `98f14a3d1` = A, PR head = B), idle baselines, free+inactive memory 3.2 to 3.6 GB, no swap, lock held only during the run. Phases per arm and round: (1) 6 wheel flings down and back; (2) `+` → keyboard → scroll: tap Write, then fling while `visualViewport` `resize` and `scroll` events are sent every 50 ms (more than a phone sends; the real viewport object, so the shipped listener runs); (3) typing latency: 80 real key presses, keydown to two frames after the DOM changed. | phase | dev (A) | PR (B) | |---|---|---| | scroll frames | 1538, ≥ 50 ms: 1 (66 ms, one outlier in round 2), p95 19, max 66 | 1541, ≥ 50 ms: **0**, p95 19, max 31 | | + → keyboard → scroll frames | 1492, ≥ 50 ms: 0, p95 19, max 26 | 1493, ≥ 50 ms: **0**, p95 19, max 26 | | idle baseline | p95 20, max 25 | p95 20, max 26 | | typing latency | n=240, p50 17, p95 28, p99 33, max 35 | n=240, p50 17, p95 27, p99 31, max 33 | Gate (no frame ≥ 50 ms on the PR, p95 within the idle/dev spread, typing flat): met. An earlier run of the same script (`+` phase driven by real window-height changes instead of events) hitched at 54 to 162 ms on BOTH arms (30 frames on dev, 31 on the PR): those are Safari re-laying out the window, not the page; it is why the second run sends the events directly. Typing in that run: dev p95 29, PR p95 28. ``` free+inactive MB: 3583.61 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) viewport [ 390, 844, 1, true ] round 1 A scroll {"n":512,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":27} | plus {"n":497,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":22,"max":26} | plusIdle {"n":1050,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":24} | type {"n":80,"ge50":0,"gt25":6,"p50":15,"p95":28,"p99":35,"max":35} round 1 B scroll {"n":513,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":31} | plus {"n":497,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":26} | plusIdle {"n":1050,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} | type {"n":80,"ge50":0,"gt25":4,"p50":15,"p95":26,"p99":33,"max":33} round 2 A scroll {"n":512,"ge50":1,"gt25":1,"p50":17,"p95":19,"p99":23,"max":66} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":21,"max":23} | plusIdle {"n":521,"ge50":0,"gt25":0,"p50":17,"p95":21,"p99":23,"max":25} | type {"n":80,"ge50":0,"gt25":10,"p50":19,"p95":29,"p99":35,"max":35} round 2 B scroll {"n":515,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":20,"max":22} | plusIdle {"n":1052,"ge50":0,"gt25":4,"p50":17,"p95":21,"p99":24,"max":26} | type {"n":80,"ge50":0,"gt25":11,"p50":18,"p95":28,"p99":32,"max":32} round 3 A scroll {"n":514,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} | plus {"n":497,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":20,"max":22} | plusIdle {"n":524,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":23} | type {"n":80,"ge50":0,"gt25":6,"p50":17,"p95":29,"p99":32,"max":32} round 3 B scroll {"n":513,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":26} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":21} | plusIdle {"n":524,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} | type {"n":80,"ge50":0,"gt25":10,"p50":17,"p95":27,"p99":29,"max":29} TOTAL A scroll {"n":1538,"ge50":1,"gt25":2,"p50":17,"p95":19,"p99":22,"max":66} scrollIdle {"n":1540,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} TOTAL A plus {"n":1492,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":26} plusIdle {"n":2095,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} TOTAL A typing latency ms {"n":240,"ge50":0,"gt25":22,"p50":17,"p95":28,"p99":33,"max":35} TOTAL B scroll {"n":1541,"ge50":0,"gt25":3,"p50":17,"p95":19,"p99":22,"max":31} scrollIdle {"n":3090,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":23,"max":26} TOTAL B plus {"n":1493,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":26} plusIdle {"n":2626,"ge50":0,"gt25":6,"p50":17,"p95":20,"p99":23,"max":26} TOTAL B typing latency ms {"n":240,"ge50":0,"gt25":25,"p50":17,"p95":27,"p99":31,"max":33} free+inactive MB: 3172.8 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) ``` Resize-driven run: ``` free+inactive MB: 3398.09 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) viewport [ 390, 844, 1, true ] round 1 A scroll {"n":514,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":30} | plus {"n":568,"ge50":11,"gt25":12,"p50":17,"p95":22,"p99":58,"max":64} | plusIdle {"n":1246,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":24,"max":28} | type {"n":80,"ge50":0,"gt25":8,"p50":18,"p95":28,"p99":37,"max":37} round 1 B scroll {"n":513,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":22,"max":39} | plus {"n":568,"ge50":10,"gt25":14,"p50":17,"p95":21,"p99":57,"max":67} | plusIdle {"n":621,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":24} | type {"n":80,"ge50":0,"gt25":12,"p50":18,"p95":30,"p99":40,"max":40} round 2 A scroll {"n":514,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} | plus {"n":566,"ge50":8,"gt25":12,"p50":17,"p95":21,"p99":54,"max":162} | plusIdle {"n":1244,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":28} | type {"n":80,"ge50":0,"gt25":14,"p50":18,"p95":30,"p99":39,"max":39} round 2 B scroll {"n":513,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":23} | plus {"n":574,"ge50":10,"gt25":15,"p50":17,"p95":21,"p99":54,"max":60} | plusIdle {"n":1246,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":26} | type {"n":80,"ge50":0,"gt25":9,"p50":16,"p95":27,"p99":31,"max":31} round 3 A scroll {"n":514,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":22,"max":26} | plus {"n":565,"ge50":11,"gt25":14,"p50":17,"p95":20,"p99":61,"max":68} | plusIdle {"n":621,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":23} | type {"n":80,"ge50":0,"gt25":9,"p50":18,"p95":29,"p99":32,"max":32} round 3 B scroll {"n":512,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":21,"max":33} | plus {"n":568,"ge50":11,"gt25":14,"p50":17,"p95":21,"p99":58,"max":76} | plusIdle {"n":621,"ge50":0,"gt25":1,"p50":17,"p95":20,"p99":23,"max":38} | type {"n":80,"ge50":0,"gt25":15,"p50":20,"p95":28,"p99":34,"max":34} TOTAL A scroll {"n":1542,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":22,"max":30} scrollIdle {"n":3092,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":22,"max":27} TOTAL A plus {"n":1699,"ge50":30,"gt25":38,"p50":17,"p95":21,"p99":58,"max":162} plusIdle {"n":3111,"ge50":0,"gt25":6,"p50":17,"p95":20,"p99":23,"max":28} TOTAL A typing latency ms {"n":240,"ge50":0,"gt25":31,"p50":18,"p95":29,"p99":36,"max":39} TOTAL B scroll {"n":1538,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":21,"max":39} scrollIdle {"n":2574,"ge50":0,"gt25":6,"p50":17,"p95":21,"p99":23,"max":26} TOTAL B plus {"n":1710,"ge50":31,"gt25":43,"p50":17,"p95":21,"p99":56,"max":76} plusIdle {"n":2488,"ge50":0,"gt25":3,"p50":17,"p95":20,"p99":23,"max":38} TOTAL B typing latency ms {"n":240,"ge50":0,"gt25":36,"p50":18,"p95":28,"p99":34,"max":40} free+inactive MB: 3173.17 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) ```
Author
Owner

iOS simulator (iPhone 18 Pro, iOS 27, Home Screen app), 2× crops (804 px wide) of the top 500 pt, with the crossfade (head 77c81db6b):

fade-1-top-title-only: Long note at the top: the title only, no capsule.
fade-1-top-title-only

fade-2-up40: Scrolled a little: the whole title is still below the pills' row: the title only, no capsule.
fade-2-up40

fade-3-up65-half-under-pill-only: Title half under the bar: the capsule only; the title is faded to 0 (the body text below is untouched, the title keeps its space).
fade-3-up65-half-under-pill-only

fade-6-further-pill-only: Scrolled further: the capsule only.
fade-6-further-pill-only

fade-5-scrolled-back-title-only: Scrolled back up: the title only, no capsule (a block menu from an earlier tap of the driver is open in this shot; ignore it).
fade-5-scrolled-back-title-only

iOS simulator (iPhone 18 Pro, iOS 27, Home Screen app), 2× crops (804 px wide) of the top 500 pt, with the crossfade (head `77c81db6b`): **fade-1-top-title-only**: Long note at the top: the title only, no capsule. ![fade-1-top-title-only](https://git.kayg.org/attachments/708a4d0b-3c68-4156-8754-68b0056c89d2) **fade-2-up40**: Scrolled a little: the whole title is still below the pills' row: the title only, no capsule. ![fade-2-up40](https://git.kayg.org/attachments/383da442-3067-4042-aefa-64b7472ec68b) **fade-3-up65-half-under-pill-only**: Title half under the bar: the capsule only; the title is faded to 0 (the body text below is untouched, the title keeps its space). ![fade-3-up65-half-under-pill-only](https://git.kayg.org/attachments/5ec6a20c-74f3-405f-9b3b-7406710059b9) **fade-6-further-pill-only**: Scrolled further: the capsule only. ![fade-6-further-pill-only](https://git.kayg.org/attachments/8ddd1853-b6a1-48ef-9a32-4430b206143b) **fade-5-scrolled-back-title-only**: Scrolled back up: the title only, no capsule (a block menu from an earlier tap of the driver is open in this shot; ignore it). ![fade-5-scrolled-back-title-only](https://git.kayg.org/attachments/8a290467-0e4e-4ed5-b303-f16ea3d04f69)
kayg changed title from fix(chrome): exactly one of the readable title and the title pill; nothing of the page shows in the bar zone to fix(chrome): the title and the capsule crossfade (exactly one shows); nothing of the page shows in the bar zone 2026-11-07 09:17:29 +00:00
Author
Owner

Mac VM (macos-01-std), real Safari via safaridriver, 390×844, a 44,793 px note, ABAB ×3 (dev 4ed2b2788 = A, PR head 77c81db6b = B), with the title fade in the build. Free+inactive memory 3.4 to 3.8 GB, no swap, lock held only during the run. Each round: 6 wheel flings down and back through the title (so the fade and the capsule swap run), then the + → keyboard → scroll phase (visualViewport events every 50 ms), then 80 real key presses.

phase dev (A) PR (B)
scroll frames 1536, ≥ 50 ms: 1 (a 114 ms outlier), p95 19, max 114 1541, ≥ 50 ms: 0, p95 19, max 37
+ → keyboard → scroll 1493, ≥ 50 ms: 0, p95 19, max 24 1493, ≥ 50 ms: 0, p95 19, max 24
idle baseline p95 20, max 26 p95 20, max 26
typing latency p50 18, p95 28, p99 36 p50 17, p95 29, p99 32

Gate (no frame ≥ 50 ms on the PR, p95 within the idle/dev spread): met.

free+inactive MB: 3829.3
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)
viewport [ 390, 844, 1, true ]
round 1 A scroll {"n":513,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":22,"max":35} | plus {"n":497,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":21,"max":22} | plusIdle {"n":1050,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} | type {"n":80,"ge50":0,"gt25":5,"p50":17,"p95":26,"p99":39,"max":39}
round 1 B scroll {"n":513,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":22,"max":37} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":22,"max":23} | plusIdle {"n":1052,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":26} | type {"n":80,"ge50":0,"gt25":11,"p50":17,"p95":30,"p99":33,"max":33}
round 2 A scroll {"n":508,"ge50":1,"gt25":1,"p50":17,"p95":19,"p99":21,"max":114} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} | plusIdle {"n":1052,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} | type {"n":80,"ge50":0,"gt25":16,"p50":19,"p95":28,"p99":36,"max":36}
round 2 B scroll {"n":514,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":25} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":23} | plusIdle {"n":1052,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":26} | type {"n":80,"ge50":0,"gt25":9,"p50":19,"p95":30,"p99":30,"max":30}
round 3 A scroll {"n":515,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":22,"max":23} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":23} | plusIdle {"n":1052,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} | type {"n":80,"ge50":0,"gt25":11,"p50":19,"p95":28,"p99":37,"max":37}
round 3 B scroll {"n":514,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":21,"max":34} | plus {"n":497,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":24} | plusIdle {"n":1050,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":24} | type {"n":80,"ge50":0,"gt25":10,"p50":17,"p95":29,"p99":34,"max":34}
TOTAL A scroll {"n":1536,"ge50":1,"gt25":3,"p50":17,"p95":19,"p99":22,"max":114} scrollIdle {"n":2577,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26}
TOTAL A plus {"n":1493,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} plusIdle {"n":3154,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":23,"max":26}
TOTAL A typing latency ms {"n":240,"ge50":0,"gt25":32,"p50":18,"p95":28,"p99":36,"max":39}
TOTAL B scroll {"n":1541,"ge50":0,"gt25":3,"p50":17,"p95":19,"p99":22,"max":37} scrollIdle {"n":2058,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25}
TOTAL B plus {"n":1493,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} plusIdle {"n":3154,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":22,"max":26}
TOTAL B typing latency ms {"n":240,"ge50":0,"gt25":30,"p50":17,"p95":29,"p99":32,"max":34}
free+inactive MB: 3414.97
vm.swapusage: total = 0.00M  used = 0.00M  free = 0.00M  (encrypted)

Mac VM (macos-01-std), real Safari via safaridriver, 390×844, a 44,793 px note, ABAB ×3 (dev `4ed2b2788` = A, PR head `77c81db6b` = B), with the title fade in the build. Free+inactive memory 3.4 to 3.8 GB, no swap, lock held only during the run. Each round: 6 wheel flings down and back through the title (so the fade and the capsule swap run), then the `+` → keyboard → scroll phase (visualViewport events every 50 ms), then 80 real key presses. | phase | dev (A) | PR (B) | |---|---|---| | scroll frames | 1536, ≥ 50 ms: 1 (a 114 ms outlier), p95 19, max 114 | 1541, ≥ 50 ms: **0**, p95 19, max 37 | | `+` → keyboard → scroll | 1493, ≥ 50 ms: 0, p95 19, max 24 | 1493, ≥ 50 ms: **0**, p95 19, max 24 | | idle baseline | p95 20, max 26 | p95 20, max 26 | | typing latency | p50 18, p95 28, p99 36 | p50 17, p95 29, p99 32 | Gate (no frame ≥ 50 ms on the PR, p95 within the idle/dev spread): met. ``` free+inactive MB: 3829.3 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) viewport [ 390, 844, 1, true ] round 1 A scroll {"n":513,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":22,"max":35} | plus {"n":497,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":21,"max":22} | plusIdle {"n":1050,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} | type {"n":80,"ge50":0,"gt25":5,"p50":17,"p95":26,"p99":39,"max":39} round 1 B scroll {"n":513,"ge50":0,"gt25":1,"p50":17,"p95":19,"p99":22,"max":37} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":22,"max":23} | plusIdle {"n":1052,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":26} | type {"n":80,"ge50":0,"gt25":11,"p50":17,"p95":30,"p99":33,"max":33} round 2 A scroll {"n":508,"ge50":1,"gt25":1,"p50":17,"p95":19,"p99":21,"max":114} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} | plusIdle {"n":1052,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} | type {"n":80,"ge50":0,"gt25":16,"p50":19,"p95":28,"p99":36,"max":36} round 2 B scroll {"n":514,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":25} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":23} | plusIdle {"n":1052,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":22,"max":26} | type {"n":80,"ge50":0,"gt25":9,"p50":19,"p95":30,"p99":30,"max":30} round 3 A scroll {"n":515,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":22,"max":23} | plus {"n":498,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":23} | plusIdle {"n":1052,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":23,"max":25} | type {"n":80,"ge50":0,"gt25":11,"p50":19,"p95":28,"p99":37,"max":37} round 3 B scroll {"n":514,"ge50":0,"gt25":2,"p50":17,"p95":19,"p99":21,"max":34} | plus {"n":497,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":24} | plusIdle {"n":1050,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":24} | type {"n":80,"ge50":0,"gt25":10,"p50":17,"p95":29,"p99":34,"max":34} TOTAL A scroll {"n":1536,"ge50":1,"gt25":3,"p50":17,"p95":19,"p99":22,"max":114} scrollIdle {"n":2577,"ge50":0,"gt25":2,"p50":17,"p95":20,"p99":23,"max":26} TOTAL A plus {"n":1493,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} plusIdle {"n":3154,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":23,"max":26} TOTAL A typing latency ms {"n":240,"ge50":0,"gt25":32,"p50":18,"p95":28,"p99":36,"max":39} TOTAL B scroll {"n":1541,"ge50":0,"gt25":3,"p50":17,"p95":19,"p99":22,"max":37} scrollIdle {"n":2058,"ge50":0,"gt25":0,"p50":17,"p95":20,"p99":22,"max":25} TOTAL B plus {"n":1493,"ge50":0,"gt25":0,"p50":17,"p95":19,"p99":21,"max":24} plusIdle {"n":3154,"ge50":0,"gt25":4,"p50":17,"p95":20,"p99":22,"max":26} TOTAL B typing latency ms {"n":240,"ge50":0,"gt25":30,"p50":17,"p95":29,"p99":32,"max":34} free+inactive MB: 3414.97 vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted) ```
Author
Owner

Merged into dev (U1): four-project specs, simulator crops checked at 2× (title only / pill only, crossfade), Mac Safari scroll and typing flat, first paint −251 B vs dev, budgets moves only (block-jobs from the widget reserve).

Merged into dev (U1): four-project specs, simulator crops checked at 2× (title only / pill only, crossfade), Mac Safari scroll and typing flat, first paint −251 B vs dev, budgets moves only (block-jobs from the widget reserve).
kayg closed this pull request 2026-11-07 09:26:08 +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!1002
No description provided.