CSS - :-webkit-autofill

The :-webkit-autofill CSS pseudo-class matches when an <input> element has its value autofilled by the browser.

Description  

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.

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 ? ? ?

See Also  

Specifications  

Not part of any specification.

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/:-webkit-autofill

CSS NeedsExample Non-standard Pseudo-class Reference