From 7021e06cd3a4f4e09b52a198034981e07de4eade Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 14 Jan 2025 15:17:26 +0900 Subject: [PATCH] Prevent to apply unexpected white background in the content area with Dark theme --- webextensions/sidebar/tab-preview-tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webextensions/sidebar/tab-preview-tooltip.js b/webextensions/sidebar/tab-preview-tooltip.js index 4e46a57e5..611641ba4 100644 --- a/webextensions/sidebar/tab-preview-tooltip.js +++ b/webextensions/sidebar/tab-preview-tooltip.js @@ -88,6 +88,7 @@ const TAB_PREVIEW_FRAME_STYLE = ` background: transparent; border: 0 none; bottom: 0; + color-scheme: light; /* "color-scheme:dark" (which can be applied by Firefox itself or the webpage) makes the background color of this element white and intransparent unexpectedly when the "Dark" theme is chosen on Firefox. We cannot override the white background color with the "background" declaration above, so we now override "color-scheme" instead. (Dark color scheme is injected by the caller, so we don't need to set "color-scheme:dark" here.) */ height: 100%; left: 0; overflow: hidden;