Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colored bar appears at the left with multi-line text selections in Chrome #13840

Closed
Rob--W opened this issue Aug 1, 2021 · 1 comment · Fixed by #13842
Closed

Colored bar appears at the left with multi-line text selections in Chrome #13840

Rob--W opened this issue Aug 1, 2021 · 1 comment · Fixed by #13842

Comments

@Rob--W
Copy link
Member

Rob--W commented Aug 1, 2021

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version: Chromium 92.0.4515.107
  • Operating system and its version: ArchLinux
  • PDF.js version: master (4cdac66) and
  • Is a browser extension: no

Steps to reproduce the problem:

  1. Open the demo in Chrome: https://mozilla.github.io/pdf.js/web/viewer.html
  2. Select multiple lines

What is the expected behavior?
Only the text should be selected.

What went wrong?
The text is selected, plus a bar appears at the left. This appears to be the result of the dummy <br>. The problem is visible in Chrome, not Firefox.

pdf-selection-box

The issue goes away if I declare a br::selection CSS rule with a transparent color. I'll attach a PR with that patch.

@Rob--W Rob--W self-assigned this Aug 1, 2021
Rob--W added a commit to Rob--W/pdf.js that referenced this issue Aug 1, 2021
bh213 pushed a commit to bh213/pdf.js that referenced this issue Jun 3, 2022
@FahimUzumaki

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants