This is driving me nuts:
HTML:
Hello World!
CSS:
The So the condition "has an ancestor that is not a Unless you can use the element is not a
element is not a
>
(child) selector, I don't think you can do what you're trying to do - it doesn't really make sense. In your second example, is not a div, so that matches
*:not(div)
too.