Merge pull request #21504 from nicolo-ribaudo/move-selection-styles

Move SVG text selection styles to pdf_viewer.css (bug 2049302)
This commit is contained in:
calixteman 2026-06-26 10:14:51 +02:00 committed by GitHub
commit 86ffd68c05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 10 deletions

View File

@ -14,16 +14,6 @@
*/
.canvasWrapper {
.selection {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: rgb(0 90 255 / 0.22);
}
svg {
transform: none;

View File

@ -120,6 +120,19 @@
image-rendering: pixelated;
}
}
/* Used by the DrawLayer, but we keep these styles here and not in
* draw_layer_builder.css because we need them to be loaded in GECKOVIEW for
* text selection. */
.selection {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: rgb(0 90 255 / 0.22);
}
}
}