Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Summary
The :-webkit-autofill
CSS pseudo-class matches when an <input>
element has its value autofilled by the browser.
Note: The user agent style sheets of many browsers use !important
in their :-webkit-autofill
style declarations, making them non-overrideable by webpages without resorting to JavaScript hacks.
Specifications
Not part of any specification.
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | Not supported | ? | ? | (Yes) |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | ? | Not supported | ? | ? | ? |