Open Bug 1466046 Opened 8 years ago Updated 3 years ago

Input text selection doesn't reset after switch to other element if any of border, border-radius or background styles applied

Categories

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

defect

Tracking

()

Tracking Status
firefox60 --- affected
firefox61 --- affected
firefox62 --- affected

People

(Reporter: perfectdaemon, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36 Steps to reproduce: 1) Create two inputs 2) Style it with any of these properties: border, border-radius, background. 3) Select some text in first input 4) Switch to another input by clicking it directly or with TAB If none of these css properties used, selection is resets Minimal Codepen example: https://codepen.io/anon/pen/VdLVMK Actual results: Text selection at first input doesn't reset Expected results: Text selection at first input reset
Hi perfectdaemon, I didn’t manage to reproduce the issue on Windows 10 x64 on latest Nightly (2018-06-04), Firefox Release 60.0.1. and Firefox Beta 61.0b11. In my case the text selecetion from the first input will reset after switching to the other text input field via TAB or by clicking on it. Did I understood correctly the steps or should I proceed differently? Can you please retest the issue using a new clean Firefox profile (https://goo.gl/AWo6h8) as well as safe mode (https://goo.gl/AR5o9d) on the latest Firefox Nightly (2018-06-04) to eliminate custom settings as a possible cause and report back the result? Thank you.
Flags: needinfo?(perfectdaemon)
Hi Timea Babos, My bad, I didn't mention that you should uncomment at least one of style properties at codepen. I've edit example, so now it could be reproduced this way: 1) Open example at codepen 2) Write text in both inputs 3) Select text in first input 4) Click at second input and try to select some text in it Result: Text selection at first input doesn't reset Expected result: Text selection at first input reset I've tested it with clean profile and safe mode on Windows 10 x64, FireFox version 60.0.1. It's still here. Can't check it on Beta version. Best wishes
Flags: needinfo?(perfectdaemon)
Hi perfectdaemon, That actually helped, I reproduced the issue on Firefox Release 60.0.2, Firefox Beta 61.0b11 and latest Nightly 62.0a1 (2018-06-07) using a clean new profile. Thank you for the help!
Status: UNCONFIRMED → NEW
Component: Untriaged → Selection
Ever confirmed: true
Product: Firefox → Core
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.