12-180%
selector list argument of :not()
BaselineWidely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2023.
Selectors Level 3 only allowed :not() pseudo-class to accept a single simple selector, which the element must not match any of. Thus, :not(a, .b, [c]) or :not(a.b[c]) did not work. Selectors Level 4 allows :not() to accept a list of selectors. Thus, :not(a):not(.b):not([c]) can instead be written as :not(a, .b, [c]) and :not(a.b[c]) works as intended.
IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
✓Supported
✗Not supported
Partial support