Open Bug 1656119 Opened 4 years ago Updated 2 years ago

Triple click selection breaks at inline-flex boundaries

Categories

(Core :: DOM: Selection, defect, P3)

Firefox 81
defect

Tracking

()

Tracking Status
firefox81 --- affected

People

(Reporter: jradosz, Unassigned)

Details

+++ This bug was initially created as a clone of Bug #1603964 +++

(Note: this is pretty much a wholesale copy of #1603964 with inline-block replaced with inline-flex. Thanks to @sidvishnoi for the original report!)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

Input:

<p><code>oops</code> triple click me to select this sentence <code>hey!</code>.</p>
<style>code { display: inline-flex; }</style>
  • Triple click the "triple click me to select this sentence" part.

Actual results:

  • Triple clicking selected/highlighted only "triple click me to select this sentence" part, and skipped "oops" and "hey!".

See for a minimal example: https://codepen.io/cvx-the-sans/pen/VweJpgo

Platform: macOS

  • Firefox 81 (Nightly): doesn't select "oops", "hey"
  • Firefox 79: doesn't select "oops", "hey"
  • Safari 13: selects
  • Chrome 86: selects

Expected results:

Entire paragraph should have been selected, regardless of code being inline-flex.

Summary: Triple click selection breaks at inline-block boundaries → Triple click selection breaks at inline-flex boundaries

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.