Re: [csswg-drafts] [css-nesting] Problems with indiscriminately wrapping all parent selectors with `:is()` (#9492)

OK. Hopefully it's not already too late to carry out https://github.com/w3c/csswg-drafts/issues/8738.

> Maybe special casing & is hacky, but not wrapping hierarchies of simple selectors seems like a direct improvement, akin to e.g. not using parens when parens are not needed when generating expressions. :is() are basically the parens of CSS selectors.

Not _only_ an improvement, it makes `&`'s behavior inconsistent. Removing parens that do nothing isn't the same as removing &/:is() which _does_ do something.

We should wrap affected declarations in something which isn't `&`, if we don't want the behavior of `&`.

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


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

Received on Friday, 20 October 2023 11:12:34 UTC