Files
Xuanru Li 655f11345e feat(capture): capture box-shadows by computed style, not class-name selectors
The shadow sampler selected elements by class-name substring ([class*='card'], …).
Sites with obfuscated / utility class names (Stripe, Vercel) carry their card elevation
on plain divs that never matched, so `shadows: []` and the renderer faked a heavy
off-brand drop shadow. Now sweep a broad structural set of visible, card-sized boxes and
collect their real computed box-shadow; the shadow recurring on the most boxes is the
brand's elevation signature. Skips tiny (icon/inline) and full-bleed page wrappers.

Verified by live re-capture: Stripe [] -> 5 shadows (incl. the signature
rgba(50,50,93,0.12) 0 16px 32px), Vercel [] -> 3.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 20:55:35 -07:00
..