From 1b2b6910acf97b63186a78941da86f23fdc8bb45 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 20 Apr 2023 14:14:33 +0200 Subject: [PATCH] Don't include Chrome-specific CSS rules in MOZCENTRAL builds --- web/text_layer_builder.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/text_layer_builder.css b/web/text_layer_builder.css index 1a5925be0..5b0b531ff 100644 --- a/web/text_layer_builder.css +++ b/web/text_layer_builder.css @@ -48,10 +48,12 @@ /* Only necessary in Google Chrome, see issue 14205, and most unfortunately * the problem doesn't show up in "text" reference tests. */ +/*#if !MOZCENTRAL*/ .textLayer span.markedContent { top: 0; height: 0; } +/*#endif*/ .textLayer .highlight { margin: -1px; @@ -88,9 +90,11 @@ } /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */ +/*#if !MOZCENTRAL*/ .textLayer br::selection { background: transparent; } +/*#endif*/ .textLayer .endOfContent { display: block;