Skip to content

feat(emulation): add backgroundColor option to emulate - #3640

Closed
flavio-cesar wants to merge 1 commit into
ChromeDevTools:mainfrom
flavio-cesar:feat/emulate-background-color-806
Closed

flavio-cesar wants to merge 1 commit into
ChromeDevTools:mainfrom
flavio-cesar:feat/emulate-background-color-806

Conversation

@flavio-cesar

Copy link
Copy Markdown
Contributor

Fixes #806

Summary

  • Add backgroundColor option to the emulate tool, including schema, response reporting, page emulation wiring, telemetry schema, and generated documentation (npm run gen).
  • Add unit tests across emulation.test.ts, McpPage.test.ts, and McpResponse.test.ts.

Test plan

  • npm run gen
  • npm run check-format
  • npm run build
  • npm run test tests/tools/emulation.test.ts
  • npm run test tests/McpPage.test.ts
  • npm run test tests/McpResponse.test.ts

AI disclosure: Assisted by AI tooling for drafting and test verification; all changes were locally generated, built, tested, and reviewed before submission.

@OrKoN

OrKoN commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

I believe this was solved by #3457 (we do not plan to add explicit color emulation with direct CDP access for now). Thanks for the PR!

@OrKoN OrKoN closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

take_screenshot captures white background instead of CSS background for transparent canvas elements

2 participants