We should implement a CSS :-moz-autofill pseudo-class that selects input elements when they are showing an autofilled value. Use-case: to be able to change the default background color highlighting that is applied when input elements are auto-filled. This feature (as :autofill) is currently one of the proposed features for CSS4-UI: http://wiki.csswg.org/spec/css4-ui#more-selectors though it could be spec'd as part of Selectors4 instead since that's further along than CSS4-UI: http://wiki.csswg.org/spec/selectors4 See related webkit bug / feature request: https://bugs.webkit.org/show_bug.cgi?id=66032
Isn't that a threat regarding user privacy?
Mounir: Please see the discussion in [ https://bugs.webkit.org/show_bug.cgi?id=66032 ]: Site authors can already override the coloring using JS hackery (e.g. by swapping in a new <input> element to replace the existing one, copying over the autofilled data), so there's not -- to the best of my knowledge -- any new security or privacy risk from this proposal.
'Measuring the impact of autofill on your forms' https://paul.kinlan.me/detecting-when-autofill-happens/