Don't add complex selectors to :not() if that would break browsers.

Closes #1505