From fd6e2e2ab311d7c2729ebedaf135bce26c520bfd Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 24 Mar 2022 14:13:57 +0100 Subject: [PATCH] Avoid the `textLayer` becoming visible in high contrast mode (issue 13230) Unfortunately this CSS property is not yet available in Firefox, see https://developer.mozilla.org/en-US/docs/Web/CSS/forced-color-adjust#browser_compatibility which is tracked in https://bugzilla.mozilla.org/show_bug.cgi?id=1591210, however this patch seems to work when testing in Google Chrome. Given that we really cannot do any more on the PDF.js-side of things, until this CSS feature is actually implemented in Firefox, I figured that submitting this patch cannot hurt in order to get rid of an open issue. --- web/text_layer_builder.css | 1 + 1 file changed, 1 insertion(+) diff --git a/web/text_layer_builder.css b/web/text_layer_builder.css index ce74c5732..b8b59a406 100644 --- a/web/text_layer_builder.css +++ b/web/text_layer_builder.css @@ -24,6 +24,7 @@ opacity: 0.2; line-height: 1; text-size-adjust: none; + forced-color-adjust: none; } .textLayer span,