Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@irene But isn't there a standardised solution given that this is the default behaviour on Firefox for Android?
-
@irene So I have to override the background attribute for the :active pseudo-class?
-
C0D4669026yIt could be :active :focus or :hover
Depending on what event the browser is triggering, these pseudo attributes behave slightly differently on mobile vs a desktop. -
So I have traversed the Fennec (Firefox for Android) source code and this is where the gray highlight is defined: https://dxr.mozilla.org/mozilla-cen...
So, to override the gray highlight on touch down in Fennec, use a:active and define a background attribute :)
Related Rants
How do I remove the gray highlight when clicking on a link in Firefox for Android?
question
css
gray highlight
firefox