The default bug view has changed. See this FAQ.

implement :-moz-autofill pseudo-class on input elements with an autofilled value




CSS Parsing and Computation
5 years ago
a month ago


(Reporter: Tantek Çelik, Unassigned)


(Blocks: 2 bugs, {dev-doc-needed})

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [form autofill])



5 years ago
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:
though it could be spec'd as part of Selectors4 instead since that's further along than CSS4-UI:

See related webkit bug / feature request:
Isn't that a threat regarding user privacy?
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk

Comment 2

5 years ago
Mounir: Please see the discussion in [ ]: 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.

Comment 3

5 months ago
'Measuring the impact of autofill on your forms'
Whiteboard: [form autofill:platform]
Whiteboard: [form autofill:platform] → [form autofill]
Blocks: 1340461
Blocks: 1340462
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.