Unknown pseudo selector 'autofill'
Hi,
when using Webstorm 2024.1.4 I encounter following issue:
I try to style the pseudo selector :autofill of an element, but webstorm complains that it is an unknown pseudo selector, even though it works after testing it in the browser.
So somehow it seems Webstorm is not aware of this pseudo selector: https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill
This is the relevant code part:
&:has(input[type="text"]:autofill),
&:has(input[type="search"]:autofill),
&:has(input[type="text"]:-webkit-autofill),
&:has(input[type="search"]:-webkit-autofill) {
.label-text {
visibility: hidden;
}
}
Thanks & BR
1 comment
Sort by
Date
Votes
Thanks for reporting the issue, I've created https://youtrack.jetbrains.com/issue/WEB-67639/CSS-autofill-CSS-pseudo-class-is-not-supported. Please follow it for updates.
Please sign in to leave a comment.