Closed Bug 1483661 Opened 6 years ago Closed 6 years ago

Input highlight remains active after selecting different input when CSS properties are applied.

Categories

(Core :: Layout: Form Controls, defect)

60 Branch
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 1478604

People

(Reporter: nicka, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Steps to reproduce:

I've been able to narrow this down to a simple repro using a couple different css properties on input tag. Without a couple of choice CSS properties everything works as expected. I've configured a repro example here:

https://codepen.io/anon/pen/NBVELq

1. Load up a page with the following content:

<style> input { border: 1px solid darkgray; } </style>
<input id="first" name="first" type="text">
<input id="second" name="second" type="text">

2. Type a value into both inputs.
3. Using the mouse, highlight a portion of the text in either input.
4. While the text is highlighted click the text in the other non-highlighted input.

Note, this will reproduce with more than 2 inputs (I did it using 4).


Actual results:

The highlight remains even after the input has lost focus. Only once a click is made away from the inputs do all the highlighted input's become un-highlighted.


Expected results:

Without applying CSS properties to the inputs they will un-highlight as soon as they lose focus. It is expected that the properties I've added (both "border" and "background-color" do the trick but there may be other properties as well) should not affect highlighting behavior.
I'm moderately sure this is a duplicate of bug 1478604 which I fixed recently. Mind confirming that it works on Nightly or Beta (works here locally)? Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
It does not reproduce on nightly. Thanks Emilio!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: