I'm designing a web application and the general style involves white text on a dark background.
This style includes using a custom (dark) image for the username and password fields, with white text.
If users log in using google chrome and choose to save their login details for the form, on the next visit the username and password fields appear as pale yellow with white text, making it nearly impossible to read. This looks really bad.
How would I go about overriding this style, preventing google chrome from changing the background of the saved username and password fields.
<style type="text/css">
input {
border: none;
background: url('darkinput.png');
color: #fff;
}
</style>
<input type="text" name="email" id="text" />
<input type="password" name="password" id="text" />
EDIT: Currently (google-chrome v11.0.696.57) the user agent stylesheets contain !important overrides to set both of the following:
input:-webkit-autofill{
background-color: rgb(250, 255, 189) !important;
background-image: none !important;
}
There is an issue report for this at the url below, and I encourage everyone who reads this to vote it up: