New issue
Advanced search Search tips

Issue 800621 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Selection of floats has weird behavior

Project Member Reported by dcheng@chromium.org, Jan 10 2018

Issue description

Chrome Version       : 65.0.3315.3
URLs (if applicable) : See attached test case.
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: FAIL
    Firefox: OK
       Edge: OK

What steps will reproduce the problem?
(1) Click three times on 5678
(2) Paste the result as plain text.

What is the expected result?
"5678" with no newline should be pasted.

What happens instead?
"5678
" is pasted.

The selection also changes in weird ways.
The first click focuses the span element containing 5678.
The second click selects both spans. Copying and pasting gives "12345678".
The third click deselects the first span, and only selects the second. But it also selects enough text that serializing the DOM to text creates a newline. So copying and pasting gives "5678
" instead of "5678" as expected by the visual appearance of the selection.

chrome-two-clicks.png is Chrome after two clicks. chrome-three-clicks.png is Chrome after three clicks.

In Firefox, the third click doesn't change the selection any further.
firefox-two-or-three-clicks.png is Firefox after two and three clicks. It looks identical, but the copy and paste result is "5678" as it appears it should be.

Safari has the same bug/behavior as Chrome, but the odd selection behavior is more obvious: the third click causes the second list bullet to be selected as well. safari-three-clicks.png illustrates this.
 
select-test.htm
316 bytes View Download
chrome-two-clicks.png
12.5 KB View Download
chrome-three-clicks.png
12.4 KB View Download
firefox-two-and-three-clicks.png
11.6 KB View Download
safari-three-clicks.png
18.0 KB View Download

Comment 1 by yosin@chromium.org, Jan 10 2018

Cc: jfernan...@igalia.com
Status: Available (was: Unconfirmed)
cc to jfernandez@igalia.com who is interested in float.
I'll take a look.
Project Member

Comment 3 by sheriffbot@chromium.org, Jan 10

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment