mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Reset Chromium-specific color-scheme
CSS property
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1408
This commit is contained in:
parent
f6234516f4
commit
ea71e93c81
@ -1223,11 +1223,21 @@ const pickerCSSStyle = [
|
|||||||
'width: 100%',
|
'width: 100%',
|
||||||
'z-index: 2147483647',
|
'z-index: 2147483647',
|
||||||
''
|
''
|
||||||
].join(' !important;');
|
];
|
||||||
|
|
||||||
|
// https://github.com/uBlockOrigin/uBlock-issues/issues/1408
|
||||||
|
// We need to reset Chromium-specific `color-scheme` property
|
||||||
|
// for our iframe widget.
|
||||||
|
if (
|
||||||
|
CSS.supports instanceof Function &&
|
||||||
|
CSS.supports('color-scheme', 'initial')
|
||||||
|
) {
|
||||||
|
pickerCSSStyle.push('color-scheme: initial');
|
||||||
|
}
|
||||||
|
|
||||||
const pickerCSS = `
|
const pickerCSS = `
|
||||||
:root > [${vAPI.sessionId}] {
|
:root > [${vAPI.sessionId}] {
|
||||||
${pickerCSSStyle}
|
${pickerCSSStyle.join(' !important;')}
|
||||||
}
|
}
|
||||||
:root [${vAPI.sessionId}-clickblind] {
|
:root [${vAPI.sessionId}-clickblind] {
|
||||||
pointer-events: none !important;
|
pointer-events: none !important;
|
||||||
|
Loading…
Reference in New Issue
Block a user