Skip to content

Conversation

@kairosci
Copy link

Fixes #18190.

This PR addresses a regression where text underneath highlight, underline, squiggly, and strikeout annotations could not be selected.
The cause was pointer-events: auto on the annotation container elements, which blocked mouse events from reaching the text layer.

Changes:

  • Added pointer-events: none to .highlightAnnotation, .underlineAnnotation, .squigglyAnnotation, and .strikeoutAnnotation in web/annotation_layer_builder.css.
  • Added an integration test test/integration/highlight_selection_spec.mjs to verify that the pointer-events property is correctly set to 'none'.

Verification:

  • Verified manually that text selection works.
  • Lint check passed.

@kairosci kairosci requested a review from a team as a code owner January 10, 2026 14:57
@kairosci kairosci marked this pull request as draft January 10, 2026 15:00
…zilla#18190)

Add pointer-events: none to markup annotation containers to prevent blocking text selection.

Add integration test.
@kairosci kairosci changed the title fix(display): allow text selection under markup annotations (issue #18190) fix(display): allow text selection under markup annotations Jan 10, 2026
@kairosci kairosci marked this pull request as ready for review January 10, 2026 15:14
@bcolsson
Copy link

Not sure if you intended to flag l10n for review or something else. It doesn't look like localization is affected.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to select highlighted text.

3 participants