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

Please sign in to leave a comment.