Re: [csswg-drafts] [selectors-4] Should `:has()` be a complex selector? (#10756)

> I thought about adding a short note in the `complex-selector` description so that it helps reducing the confusion

I cannot say if/how this can be improved but the [WD version of the spec](https://drafts.csswg.org/selectors-4/#relational) has this note that the current REC version does not:

  > Since `:has()` takes a `<relative-selector-list>`, its arguments are inherently complex selectors (because they start, perhaps implicitly, with a combinator). This means `:has()` cannot be used in contexts that don’t allow complex selectors; its arguments will be guaranteed to be invalid.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10756#issuecomment-2311738369 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 27 August 2024 07:10:34 UTC