Brand autofill background
example.css
input:autofill {
box-shadow: 0 0 0 1000px #ecfeff inset;
-webkit-text-fill-color: #0f172a;
}
The :autofill pseudo-class matches form controls filled by the browser’s autofill feature. Use it to keep autofilled fields on-brand.
input:autofill {
box-shadow: 0 0 0 1000px #ecfeff inset;
}input:autofill {
box-shadow: 0 0 0 1000px #ecfeff inset;
-webkit-text-fill-color: #0f172a;
}:autofill is a CSS selector.
Supported in modern browsers.
Bottom line: Safe for modern sites. Keep readable defaults without the selector.
Continue with :user-valid.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful