Last Comment Bug 740979 - implement :-moz-autofill pseudo-class on input elements with an autofilled value
: implement :-moz-autofill pseudo-class on input elements with an autofilled value
Status: NEW
:
Product: Core
Classification: Components
Component: CSS Parsing and Computation (show other bugs)
: Trunk
: All All
: -- normal with 5 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-30 14:47 PDT by Tantek Çelik
Modified: 2014-07-16 17:36 PDT (History)
6 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Tantek Çelik 2012-03-30 14:47:59 PDT
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
Comment 1 Mounir Lamouri (:mounir) 2012-03-30 15:05:35 PDT
Isn't that a threat regarding user privacy?
Comment 2 isherman 2012-04-30 16:29:18 PDT
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.

Note You need to log in before you can comment on or make changes to this bug.