From 7991fc1ebd6c890c033231595c461fd26a237f3e Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 15 Oct 2021 10:50:34 +0100 Subject: [PATCH] Visually hide br in text selections (#5447) GitOrigin-RevId: ee26da17dd8087545022ce704ef98102e7eb9ea0 --- services/web/frontend/stylesheets/app/editor/pdf.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/frontend/stylesheets/app/editor/pdf.less b/services/web/frontend/stylesheets/app/editor/pdf.less index f8bac33a70..57c1e8f071 100644 --- a/services/web/frontend/stylesheets/app/editor/pdf.less +++ b/services/web/frontend/stylesheets/app/editor/pdf.less @@ -216,6 +216,10 @@ &:focus-within { outline: none; } + /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */ + .textLayer br::selection { + background: transparent; + } } .progress-thin { position: absolute;