Hover event triggers on border
Reported by
ruud.and...@gmail.com,
Nov 14 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 Example URL: https://codepen.io/anon/pen/GOEzrg Steps to reproduce the problem: 1. Make a div with a border 2. Remove border on hover 3. Hover over border 4. Border flickers What is the expected behavior? No flickering What went wrong? A hover event is triggered on the border repeatedly after a redraw. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? Yes v61 Does this work in other browsers? Yes Chrome version: 62.0.3202.89 Channel: n/a OS Version: 10.0 Flash Version:
,
Nov 15 2017
,
Nov 15 2017
This looks WAI to me. It seems to be unspecified in the specs whether :hover should be applied on the element border but all browsers do it. If you take that as given, Chrome's behavior seems consistent: when you hover over the border, :hover is applied and the border disappers. This causes the element to lose the border (and move left a bit) so that the cursor is no longer over the element. So it loses :hover and thus gets its border back. And repeat. Firefox differs only in that it seems to apply :hover on mouse move. If you zoom in or make the border larger, move the mouse up and down along the border. You'll see that it flickers there as well. |
|||
►
Sign in to add a comment |
|||
Comment 1 by divya.pa...@techmahindra.com
, Nov 15 2017Labels: Triaged-ET M-64 Needs-Triage-M62 OS-Linux OS-Mac