Open Bug 1911755 Opened 1 year ago Updated 1 year ago

Text Selection with Elements Styled with user-select: none

Categories

(Core :: DOM: Selection, defect)

Firefox 128
defect

Tracking

()

UNCONFIRMED

People

(Reporter: ivanq2191, Unassigned)

Details

Attachments

(1 file)

Attached file index.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Steps to reproduce:

  1. Open the attached HTML file.
  2. Use the mouse to select text anywhere in the document.
  3. Use the keyboard to expand the selection (e.g., using the arrow keys, shift + up/down).
  4. Ensure the selection includes an element styled with user-select: none.
    Change the direction of the text selection (e.g., from up to down or vice versa).

Actual results:

When the selection reaches the boundary of the user-select: none element, it stops removing the text selection.

Expected results:

The text selection should continue seamlessly across the boundary of the user-select: none element, even when changing the direction of the selection. The selection behavior should not be interrupted by the presence of elements with user-select: none.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Severity: -- → S3
Component: DOM: Core & HTML → DOM: Selection
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: