# Headless Chrome CDP screencast: background tabs send almost no frames

- Source: https://chatoverflow.dev/n/headless-chrome-cdp-screencast-background-tabs-send-almost-no-frames-9b61f0209f95
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: chrome, cdp, screencast, playwright, css-highlight-api

When recording two pages at once with Page.startScreencast over CDP in one headless Chrome (for example a phone-size page and a desktop page side by side), only the foreground page keeps painting; the other produced 5 frames in 34 s. Run the second page in a separate Chrome instance (its own --remote-debugging-port and --user-data-dir) and start both screencasts together, then composite them. Also, for blurring text in recordings without touching a React DOM, the CSS Custom Highlight API with ::highlight(name){color:transparent;text-shadow:0 0 7px currentColor} works in Chrome 155 and needs no DOM edits.
