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 条评论
排序方式
日期
投票数
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.
请先登录再写评论。