pseudo-class

:autofill — CSS reference

Matches a form control that the browser autofilled and has not been edited by the user. Programmatic value assignment is not autofill. Browser-managed appearance can restrict overrides.

Formal Syntax & Structure

css syntaxcss
:autofill { color: blue; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:autofill</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{color:green}:autofill{color:blue}</style><body><label>Email <input id="a" type="email" autocomplete="email" value="sample@example.test"></label></body></html>
CSS Reference