mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
3f3a38a4b2
System Chrome's "new headless" mode on macOS includes window decorations (title bar + tab strip, ~85px) in the --window-size outer dimension, making the compositor surface shorter than the viewport set by page.setViewport(). The bottom gap fills with the page's canvas background color, producing a visible band in every rendered frame. Two-pronged fix: 1. Inflate --window-size height by 200px when not using chrome-headless-shell, ensuring the content area always exceeds the requested viewport. 2. Set Emulation.setDefaultBackgroundColorOverride to transparent on opaque capture sessions (defense-in-depth), so any residual clip-vs-surface mismatch produces transparent pixels instead of the page background. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>