Skip to content

Highlight went wrong when the text font-size less than the minimum font-size of the browser #14426

@helianthuswhite

Description

@helianthuswhite

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
  • Operating system and its version: Intel Mac OS X 10_15_7
  • PDF.js version: the latest
  • 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. search any word in the pdf, such as 'JavaScript'
  3. zoom out the pdf until the minimum font-size less than 12px, and you will see the problem

What is the expected behavior? (add screenshot)
image

What went wrong? (add screenshot)
image

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://mozilla.github.io/pdf.js/web/viewer.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions