Nothing Special   »   [go: up one dir, main page]

Open Bug 1627364 Opened 5 years ago Updated 4 years ago

CSS: Hover styling remains when element position changed

Categories

(Core :: Web Painting, defect, P3)

75 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: liamrbloom, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

I created an html element with a :hover rule. I then added javascript that moved the button when clicked. If I didn't move my mouse after clicking, the :hover rule was still aplied. Here is a codepen that shows the bug: https://codepen.io/limabeanbloom/pen/KKpLeGp

Actual results:

The :hover rule was still applied until I moved my mouse

Expected results:

The :hover rule should not have been applied because the element had moved and the mouse was no longer hovering over it.

I can reproduce on Windows10 Nightly76.0a1 and Chrome80 as well.

Component: Untriaged → Web Painting
Product: Firefox → Core

The priority flag is not set for this bug.
:mattwoodrow, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(matt.woodrow)

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --
Severity: -- → S3
Flags: needinfo?(matt.woodrow)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.