Missing pseudo-class functions #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I added missing pseudo-classes which are supposed to be used with an argument.
Pseudo-class :host can be used with or without them.
hostdoesn't seem to accept arguments, so it doesn't need to be explicitly handled.whereandisexpect a selector, so they should be handled inUnaryQuery.notis already handled there. Does attached patch work for you?UnaryQuery { @specialize[@name=UnaryQueryOp]<identifier, "not" | "only" | "is" | "where"> query } |doesn't seem to be right place forisorwhere, because UnaryQuery handles following case:In this context keywords
onlyandnotare acceptable, butisandwhereare not. Also keywordonlyis acceptable only in media queries, there is no such pseudo-class or pseudo-element.You are right, those don't belong there (and were in fact already parsed correctly by the existing code).
Pull request closed