mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 15:21:00 +02:00
Merge pull request #21329 from calixteman/fix_selection_color
Force the text selection color to be in light mode
This commit is contained in:
commit
87b436ddd4
@ -132,6 +132,9 @@ class DOMFilterFactory extends BaseFilterFactory {
|
||||
if (!this.#_defs) {
|
||||
const div = this.#document.createElement("div");
|
||||
const { style } = div;
|
||||
// The pdf colors are mostly in light mode (white background with a black
|
||||
// foreground), so the filters are created in light mode.
|
||||
style.colorScheme = "only light";
|
||||
style.visibility = "hidden";
|
||||
style.contain = "strict";
|
||||
style.width = style.height = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user