Merge pull request #16326 from Snuffleupagus/limit-Chrome-CSS

Don't include Chrome-specific CSS rules in MOZCENTRAL builds
This commit is contained in:
Tim van der Meij 2023-04-22 14:54:50 +02:00 committed by GitHub
commit 2588924b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;