Skip to content

css.selectors.autofill - Firefox only supports :autofill on username/password fields #26245

@jespertheend

Description

@jespertheend

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

The :autofill pseudo class doesn't seem to work on all text fields in Firefox. For instance, an <input type="email"> element doesn't seem to get any styles applied when autofilling an email address.

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

A reference to this bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1923525

Did you test this? If so, how?

Yes, I tried to use this but quickly found out it's not supported

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://bugzilla.mozilla.org/show_bug.cgi?id=1923525

Do you have anything more you want to share?

I already reported this in mdn/content#38676 (comment) but got redirected here.

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill

MDN metadata

MDN page report details
  • Query: css.selectors.autofill
  • Report started: 2025-03-18T05:45:22.503Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:cssCompat data for CSS features. https://developer.mozilla.org/docs/Web/CSSp2High priority – Community PRs highly encouraged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions