Re: [csswg-drafts] [selectors] consider preserving invalid selectors in :is() and :where() (#8356)

  > If invalid selectors are no longer dropped, `:is()` without arguments does no longer seem needed.

`:is(), valid {}` would become invalid, isn't it? Is it ok regarding back-compatibility?

---

  > TabAtkins: not sure why we decided to drop the invalid selector arguments in `:is()`

I think a good reason is that the author can see which selectors are invalid.

---

  > emilio: implementation-wise, it's easier to just drop it, but if we need to preserve it, easier to preserve always rather than sometimes

Isn't it also easier to serialize all selectors as is? 

You parse `:is(<declaration-value>#)` and then you evaluate each `<declaration-value>` with *parse a comma-separated list according to a CSS grammar* (`<complex-selector>`). This could be applied to `<media-query-list>`.

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


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

Received on Wednesday, 26 July 2023 07:21:54 UTC