WebCalm icon indicating copy to clipboard operation
WebCalm copied to clipboard

:has pseudo-class

Open aditsu opened this issue 2 months ago • 4 comments

Webcalm doesn't seem to support selectors like:

section:has(.featured) { }

(example taken from MDN docs) It says: no viable alternative at input 'section:has(.'

aditsu avatar Oct 06 '25 08:10 aditsu

WebCalm perceives the following CSS description as erroneous.

Image

biglazycat63 avatar Oct 29 '25 19:10 biglazycat63

@biglazycat63 please use a formatted code block instead of in image.

ris58h avatar Oct 29 '25 21:10 ris58h

Also that has nothing to do with this issue (no ":has" pseudo-class). But.. we can't expect too much from a big lazy cat 😂

aditsu avatar Oct 30 '25 06:10 aditsu

@aditsu BTW the reason of your issue is invalid CSS grammar. This project uses official ANTLR grammars. It should be fixed there first.

ris58h avatar Oct 30 '25 10:10 ris58h