Skip to content

fix(trace): respect dark mode in blank snapshot#39207

Merged
Skn0tt merged 1 commit intomicrosoft:mainfrom
Skn0tt:iframe-snapshot
Feb 10, 2026
Merged

fix(trace): respect dark mode in blank snapshot#39207
Skn0tt merged 1 commit intomicrosoft:mainfrom
Skn0tt:iframe-snapshot

Conversation

@Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Feb 10, 2026

closes #39201

before: Screenshot 2026-02-10 at 10 34 47
after: Screenshot 2026-02-10 at 10 34 18

@Skn0tt Skn0tt requested a review from dgozman February 10, 2026 09:35
@Skn0tt Skn0tt self-assigned this Feb 10, 2026
return text.replace(urlToEscapeRegex1, replacer).replace(urlToEscapeRegex2, replacer);
}

export const blankSnapshotUrl = 'data:text/html;base64,' + btoa(`<body></body><style>body { color-scheme: light dark; background: light-dark(white, #333) }</style>`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why base64 is needed here? Seems like a nice html snippet.

Copy link
Member Author

@Skn0tt Skn0tt Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because of the , in light-dark() - it truncated behind that. i was a little surprised.

@github-actions
Copy link
Contributor

Test results for "tests 1"

3 flaky ⚠️ [chromium-page] › page/page-request-continue.spec.ts:754 › propagate headers cross origin redirect after interception `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/popup.spec.ts:258 › should not throw when click closes popup `@chromium-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1082 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`

38556 passed, 843 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "MCP"

1 failed
❌ [chromium] › mcp/roots.spec.ts:47 › check that trace is saved in workspace @mcp-windows-latest

4765 passed, 135 skipped


Merge workflow run.

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.

[Bug]: [Accessability]: playwright UI displays a big white box on startup even in high constrast black

2 participants