- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Jul 2023 22:22:06 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[selectors] consider preserving invalid selectors in :is() and :where()`, and agreed to the following: * `RESOLVED: preserve invalid selectors inside forgiving selector lists (such as :is() and :where()) regardless of whether there's an & in them` <details><summary>The full IRC log of that discussion</summary> <dbaron> emilio: For nesting, when you have an & in a nested selector, we resolved to preserve the invalid selector inside so that you could properly track whether there was an &. Makes sense. But inconsistent, in the sense that it's a weird special case. Would be more consistent IMO to preserve all invalid selectors. That way you don't special case nesting. It's also more consistent with @supports and @media, with <general-enclosed>.<br> <dbaron> emilio: ... It feels more generally consistent. I don't think it matters particularly... I don't expect compat issues. The question is... as Oriol mentioned, this also makes the empty selector kind of silly.<br> <dbaron> TabAtkins: As a selectors editor, I agree, would be good to keep it ??? defined.<br> <dbaron> TabAtkins: not sure why we decided to drop the invalid selector arguments in :is()<br> <dbaron> emilio: implementation-wise, it's easier to just drop it, but if we need to preserve it, easier to preserve always rather than sometimes.<br> <ntim_> q+<br> <dbaron> emilio: So if nobody objects I think this would be better than the current specified behavior.<br> <bramus> +1<br> <Rossen_> ack ntim_<br> <dbaron> ntim_: Isn't there something about forgiving parsing?<br> <dbaron> emilio: That's the behavior of dropping invalid selector.<br> <dbaron> TabAtkins: nesting cares about whether there's an & at all, so you don't have a newer/older browser behavior switch.<br> <bramus> dbaron: so you would still be treating invalid selectors the same<br> <dbaron> dbaron: ... just preserving them in the OM.<br> <bramus> … but just not drop m<br> <dbaron> TabAtkins: yes<br> <dbaron> emilio: Proposed resolution: preserve invalid selectors inside :is() and :where() regardless of whether there's an & token.<br> <dbaron> ?: do for all forgiving selector lists?<br> <astearns> s/?/matthieudubet<br> <dbaron> TabAtkins: I think that's all of them for now, but we should say for all forgiving selector lists.<br> <dbaron> RESOLVED: preserve invalid selectors inside forgiving selector lists (such as :is() and :where()) regardless of whether there's an & in them<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8356#issuecomment-1642840607 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 19 July 2023 22:22:08 UTC