From f819b1c72dbb7587f247c6219f9363c18e91393c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 30 May 2023 17:58:29 +0200 Subject: [PATCH] fix: trace viewer with global applied background-color (#23362) Fixes https://github.com/microsoft/playwright/issues/23275 --- packages/playwright-core/src/server/injected/highlight.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/playwright-core/src/server/injected/highlight.ts b/packages/playwright-core/src/server/injected/highlight.ts index 767b077d4b..c0eb9a5390 100644 --- a/packages/playwright-core/src/server/injected/highlight.ts +++ b/packages/playwright-core/src/server/injected/highlight.ts @@ -53,6 +53,7 @@ export class Highlight { this._glassPaneElement.style.zIndex = '2147483647'; this._glassPaneElement.style.pointerEvents = 'none'; this._glassPaneElement.style.display = 'flex'; + this._glassPaneElement.style.backgroundColor = 'transparent'; this._actionPointElement = document.createElement('x-pw-action-point'); this._actionPointElement.setAttribute('hidden', 'true');