From e68537513f0e95a52a553d98fa4da78a5f948178 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 14 Nov 2022 11:49:59 -0500 Subject: [PATCH] Sort of fix DOM inspector's visual with webpages in dark theme mode Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/discussions/2359#discussioncomment-4126129 Removing `color-scheme` property fixes the issue. Not sure why. --- src/js/scriptlets/dom-inspector.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/scriptlets/dom-inspector.js b/src/js/scriptlets/dom-inspector.js index 884754393..686ae4a28 100644 --- a/src/js/scriptlets/dom-inspector.js +++ b/src/js/scriptlets/dom-inspector.js @@ -855,16 +855,15 @@ pickerRoot.style.cssText = [ 'border: 0', 'border-radius: 0', 'box-shadow: none', - 'color-scheme: light', 'display: block', 'height: 100%', 'left: 0', 'margin: 0', 'opacity: 1', - 'position: fixed', 'outline: 0', 'padding: 0', 'pointer-events:none;', + 'position: fixed', 'top: 0', 'visibility: visible', 'width: 100%',