765e3a2f8a
Three items from the adversarial review of the compositor-only spinner. 1. COMPOSITOR PROMOTION. The keyframes travelled translateY(-100%), which resolves against the strip's own box and so makes the animation layout-dependent: instrumentation recorded a non-zero compositeFailed on 184/184 records (131072 / 131104) while a sibling transform animation using an absolute length composited clean. The travel is now calc(frames * -1 * frame-height), an absolute length for the same distance, and the strip gets will-change: transform. steps(var(--glyph-spinner-frames)) and the 1em frame metric are unchanged. The frame height is now a custom property on .glyph-spinner, used by the clip viewport, each frame box and the keyframe travel, so those three cannot drift. On the em-resolution question: the keyframes apply to .glyph-spinner__strip and nothing below .glyph-spinner declares a font-size, so the strip's em and the frame's em are the same length -- the property makes that a single declaration rather than a coincidence to re-verify. 2. SELECTION. .glyph-spinner takes user-select: none (plus -webkit-). These sit inside [data-selectable-text] subtrees, where the strip contributed all N glyphs to a transcript copy against the old implementation's one. None is right for a decorative aria-hidden element. 3. SAME-CLASS SWEEP. chat-swap-overlay.tsx ran its own 80ms setInterval + setState braille ticker -- the exact mechanism this fix removes. Its setFrame drove only the glyph (setLabel is independent), and its frame set and cadence are exactly the `braille` variant, so it now renders GlyphSpinner. `justify-start` (tailwind-merge lets the caller win) keeps the glyph left-aligned in its w-3 box as the bare span was. GlyphSpinner gains a `paused` prop for it: the overlay stays mounted through its fade-out, and the old cleared-interval behaviour was to stop animating once the swap was done. Tests: guards for the two invisible-in-jsdom regressions -- keyframes must not return to a percentage translate, and the selection guard must stay -- plus the paused prop, and a new chat-swap-overlay.test.tsx pinning that no timer comes back, the label still survives the fade-out, and the glyph freezes with it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>