Don't include Chrome-specific CSS rules in MOZCENTRAL builds

This commit is contained in:
Jonas Jenwald 2023-04-20 14:14:33 +02:00
parent f675bfe178
commit 1b2b6910ac

View File

@ -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;