javascriptmicrosoft-edgeautofill

Detect autofill for Edge browser


Edge browser recently released support for autofill and I wanna apply the same custom style I have for Chrome in Edge, but apparently the tag :-webkit-autofill doesn't work. Can someone help me on what to do in this case? I've spend half a day searching for the correct tag, but I couldn't find anything.


Solution

  • I found the solution and what Edge does is that it includes a class called edge-autofilled in the input.