You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I found a bug when targeting the current class with an :has selector on a parent. It will unexpectedly prepend the selector with the class, but probably should not.
For example:
// css call:constmyClass=css` *:has(:focus-visible) > & { /* styles */ }`// resulting selector.go3480710288 :has(:focus-visible)>.go3480710288// selector that I would actually expect:
:has(:focus-visible)>.go3480710288
I also just found out that this bug appears as well when using other similar selectors, like :not(...) and :where(...).
When targeting from a parent with :hover, it would behave like expected, e.g.:
Hey!
I think I found a bug when targeting the current class with an
:has
selector on a parent. It will unexpectedly prepend the selector with the class, but probably should not.For example:
I also just found out that this bug appears as well when using other similar selectors, like
:not(...)
and:where(...)
.When targeting from a parent with
:hover
, it would behave like expected, e.g.:The text was updated successfully, but these errors were encountered: