Skip to main content
Feb 26, 2026 12:01 PM UTC
Question

:autofill CSS not being used?

Same title and body as a request put out four years ago. I'm a bit shocked you haven't fixed this yet.

I've just noticed that 1Password does not use `:autofill` CSS, but instead adds a custom `data-com-onepassword-filled="light"` attribute.

I'm trying to style the filled field properly. 1Password changes the background color and that breaks the visual design here. The readability of my page is totally compromised by your styling.

Any particular reason why I cannot use `:autofill` (or `:-webkit-autofill`) to style the field?

Regards,
Jake