Prior to the change you could only pass a "simple selector" that only matched against the one node, such as :not(.something).
However you can now do :not(ul > li p.something)
They were so close to capturing how good LESS is, why did they do this? Why didn't they just copy LESS?
Personally I think it good that it makes it more explicit, even for none element nested selectors I'm adding the & to make it clear. So for a class "& .something".
Edit:
Found it in the spec
> Nesting style rules naively inside of other style rules is, unfortunately, ambiguous—the syntax of a selector overlaps with the syntax of a declaration, so an implementation requires unbounded lookahead to tell whether a given bit of text is a declaration or the start of a style rule.
> ... that is, the parser might have to hold onto an unknown amount of content before it can tell which way it’s supposed to be interpreting it. CSS to date requires only a small, known amount of lookahead in its parsing, which allows for more efficient parsing algorithms, so unbounded lookahead is generally considered unacceptable among browser implementations of CSS.
End of this section: https://www.w3.org/TR/css-nesting-1/#nesting
I keep running my CSS through SASS just so I can use single line comments. If they'd add those to CSS natively...
Can't wait to drop PostCSS as I've had its plugins, extensions, whatever they're called break my stack (through subtle bug or breaking changes) more often than Webpack plugins, and that's saying something.
:is() - https://developer.mozilla.org/en-US/docs/Web/CSS/:is
:not() - https://developer.mozilla.org/en-US/docs/Web/CSS/:not
CSS nesting - https://developer.chrome.com/articles/css-nesting/
Interestingly nested css is implemented as a syntactic sugar over :is() in order to achieve the correct specificity.