:has() pseudo-class is not part of the live profile
petamoriken opened this issue · 1 comments
petamoriken commented
:has()
pseudo-class is not part of the live profile in specification, so current :has()
example is invalid.
Line 403 in d61beb5
The
:has()
pseudo-class takes a selector list as an argument. In the current specification:has
is not marked as part of the live selector profile, which means it can not be used within stylesheets; only with functions likedocument.querySelector()
.
https://developer.mozilla.org/en-US/docs/Web/CSS/:has
https://www.w3.org/TR/selectors-4/#profiles
Antonio-Laguna commented
The example is correct again :)
At the moment Safari is implementing :has
in CSS so we can now consider it "part of the live profile in specification".