Split from #3264. It's not clear what happens if you add an invalid selector inside :is or :not or :where in terms of serialization.
- Should we just skip them?
- Should we serialize it as
:not(*|*) (like invalid media queries which serialize as not all)?
- Something else?
/cc @ericwilligers