Closed
Bug 1375877
Opened 8 years ago
Closed 1 years ago
Hover (and similar events) on elements inside button don't work
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: kizmarh, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 YaBrowser/17.6.0.1628 Yowser/2.5 Safari/537.36
Steps to reproduce:
Simple example: https://codepen.io/kizu/pen/mwMqNw
We can have a button with an element inside of it which can have declared hover/active states in CSS
Actual results:
When you hover the inner element with declared hover/active states, they're not triggered.
Expected results:
The hover/active states should trigger for elements inside a button.
Comment 2•8 years ago
|
||
This is because we follow html4 model where events are targeted to <button>, not to elements inside buttons.
Comment 3•8 years ago
|
||
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1)
> Any thoughts, Stone?
Had some discussion with Smaug and I have to survey more details about other browser's behaviors to figure out next step.
Flags: needinfo?(sshih)
Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•3 years ago
|
Severity: normal → S3
Reporter | ||
Comment 4•1 years ago
|
||
Testing this one — I think it can be closed, as I cannot reproduce it neither in stable nor nightly Firefox anymore.
Status: UNCONFIRMED → RESOLVED
Closed: 1 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•