Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autofill not being prefixed #626

Closed
alan-agius4 opened this issue Mar 8, 2016 · 17 comments
Closed

autofill not being prefixed #626

alan-agius4 opened this issue Mar 8, 2016 · 17 comments
Labels

Comments

@alan-agius4
Copy link

 input {
   &::autofill {
       box-shadow: 0 0 0px 1000px #fff inset;
   }
}

autofill are not being autoprefixed.

browsers: "last 2 versions"

@ai
Copy link
Member

ai commented Mar 8, 2016

Do we have any W3C spec about ::autofill? Seems like right not it is only a :-webkit-autofill.

@alan-agius4
Copy link
Author

Seems like it's something in CSS4
https://wiki.csswg.org/spec/css4-ui#more-selectors
So I guess it's rightly so that it's not prefixed.

@ai ai added the support label Mar 8, 2016
@ai ai added this to the 6.4 milestone Jul 24, 2016
@ai
Copy link
Member

ai commented Jul 27, 2016

Could you help me and make PR to Can I Use with ::autofill support data?

@ai ai added the caniuse label Jul 27, 2016
@yisibl
Copy link
Member

yisibl commented Jul 27, 2016

This is not in the CSSWG draft.

https://drafts.csswg.org/css-ui/
https://drafts.csswg.org/css-ui-4/

@ai
Copy link
Member

ai commented Aug 1, 2016

@alan-agius4 sorry, there is no ::autofill yet. Feel free to reopen issue when Firefox will implement :-moz--autofill.

@Aljullu
Copy link
Contributor

Aljullu commented Feb 17, 2021

@ai ai reopened this Feb 17, 2021
@ai
Copy link
Member

ai commented Feb 17, 2021

Cool! Seems like we have a support chart on MDN (which we can use at Can I Use). Can somebody send PR?

@yisibl
Copy link
Member

yisibl commented Feb 18, 2021

@yisibl
Copy link
Member

yisibl commented Feb 18, 2021

@Semigradsky
Copy link
Member

The same as for #1374. The data is available in mdn-data but not in caniuse-db.

@roypearce
Copy link

Is this sufficient to add support? https://caniuse.com/mdn-css_selectors_autofill

@ai
Copy link
Member

ai commented Sep 14, 2021

@roypearce nope, this data is not available in caniuse-db npm package

@lukewarlow
Copy link
Contributor

Potentially worth hardcoding data in like we did for file-selector-button and updating it as and when stable support is added.

In the meantime it could even be worth adding in a blanket prefix rule that automatically generates the WebKit prefixed version. That way you get the prefix, ensuring your code works in all modern browsers.

This will be supported in:

Chrome 96: https://www.chromestatus.com/feature/5592445322526720

And is already supported in:

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

Safari TP 129: https://webkit.org/blog/11951/release-notes-for-safari-technology-preview-129/ - presumably will come in Safari 15.1 or 15.2

@ai
Copy link
Member

ai commented Oct 13, 2021

@lukewarlow maybe we can improve caniuse-lite scripts and add custom files there?

Send PR to https://github.com/browserslist/caniuse-lite with a script (somewhere in check.js) which will use MDN data npm package and generate small JSON just for autofill support data.

@lukewarlow
Copy link
Contributor

@ai made a start on it browserslist/caniuse-lite#86

@ai
Copy link
Member

ai commented Oct 28, 2021

Fixed by #1430

@ai ai closed this as completed Oct 28, 2021
@ai
Copy link
Member

ai commented Oct 28, 2021

:autofill was released in 10.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants