I'm having trouble using some relatively simple CSS selectors using :not
. Namely, the following selector is giving me an error:
a:not(.ebook_document *)
I am trying to get all <a>
elements that are not children of the element with class ebook_document
. This also fails:
a:not(.ebook_document > *)
As well as this:
a:not(.ebook_document, *)
Putting the selectors on their own, not in a :not
section works fine. What have I done wrong?