diff options
Diffstat (limited to 'toolkit/components/pdfjs/content/web/viewer-geckoview.css')
-rw-r--r-- | toolkit/components/pdfjs/content/web/viewer-geckoview.css | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/toolkit/components/pdfjs/content/web/viewer-geckoview.css b/toolkit/components/pdfjs/content/web/viewer-geckoview.css index c336b4f7fc..4228a2e45b 100644 --- a/toolkit/components/pdfjs/content/web/viewer-geckoview.css +++ b/toolkit/components/pdfjs/content/web/viewer-geckoview.css @@ -179,11 +179,22 @@ } } - canvas{ + .annotationContent{ position:absolute; width:100%; height:100%; pointer-events:none; + + &.freetext{ + background:transparent; + border:none; + inset:0; + overflow:visible; + white-space:nowrap; + font:10px sans-serif; + line-height:1.35; + user-select:none; + } } section{ @@ -192,6 +203,12 @@ pointer-events:auto; box-sizing:border-box; transform-origin:0 0; + + &:has(div.annotationContent){ + canvas.annotationContent{ + display:none; + } + } } :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a{ |