[Bug]: :active pseudo-class doesn't get added when element is in shadow DOM
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
People
(Reporter: kbrosnan, Assigned: edgar)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
From github: https://github.com/mozilla-mobile/fenix/issues/26229.
Steps to reproduce
Minimal example: https://jsfiddle.net/jngbsn/6pjy8qvx/9/
Expected behaviour
Both buttons should turn red when pressed.
Actual behaviour
The bottom button does not apply its :active CSS rule when pressed. If the site is viewed with the desktop version of Firefox in Responsive Design Mode with touch simulation enabled, the result is the same, the bottom button does nothing.
The :active CSS rule works if you apply it manually in devtools, and the element responds to pointer and touch events. Initially the bug was found with button elements, but seems to do the same with anchor and even div elements (from what I tested). However I did not test any other pseudo-classes.
Works as expected in desktop Firefox, as well as mobile and desktop Chrome.
Device name
No response
Android version
Android 12
Firefox release type
Firefox
Firefox version
102.2.1
Device logs
No response
Additional information
No response
┆Issue is synchronized with this Jira Task
Change performed by the Move to Bugzilla add-on.
Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Still have the same bug in mobile 103.1.0 and desktop 103.0 in responsive design mode.
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Updated•2 years ago
|
Description
•