0

Using the answer from Removing input background colour for Chrome autocomplete? I would like to disable the autofill background color but only on specific forms.

.myform input:-webkit-autofill,
.myform input:-webkit-autofill:focus {
    -webkit-transition: color 9999s ease-out, background-color 9999s ease-out;
    -webkit-transition-delay: 9999s;
}

Html:

<form class="myform" method="POST" action="targetpage.aspx">
    <input type="text" name="Username">
    <input type="password" name="Password">
</form>

But the above is not honored (e.g. in Chrome). Adding .myform makes it fail. Is there something obvious I'm missing?

Kobi
  • 135,331
  • 41
  • 252
  • 292
Cyberic
  • 1
  • 2

0 Answers0