Skip to content
This repository was archived by the owner on Dec 9, 2018. It is now read-only.
This repository was archived by the owner on Dec 9, 2018. It is now read-only.

Text not selectable due to div.c covering other text - specific example provided #539

@GeorgeBailey

Description

@GeorgeBailey

I am having this issue: #423

PDF: https://drive.google.com/file/d/0BwwDqVDee2LXRk8zTi03NGxJZjQ/view?usp=sharing
HTML: https://drive.google.com/file/d/0BwwDqVDee2LXSFcyNEtYczFNbTQ/view?usp=sharing

Only the last bullet point "The Result" can be selected. It is in a div.c.

Because of this div.c the other bullet points cannot be selected.

One possible solution is to add CSS:

div.c { pointer-events: none; }
div.c>* { pointer-events: auto; padding-right: 100px; }

In the above CSS, pointer-events solves the bulk of the problem.

The padding-right was necessary to allow a selection beginning with "2. test" and ending with "The result". When no padding is present, the letters "sult" could not be selected easily.

I would suggest you add the above CSS to your output until you develop a more robust solution.

Until this issue is solved, I can add the CSS to the base.min.css manually. (I'm using --split-pages and --embed-css=0)

For some people. the problem can be mitigated even more effectively by adding div.c { overflow: visible; } which completely disables the clip feature. Of course would could cause display problems on some PDFs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions