I'd like to select tags whose class is content
and are a general successor sibling of .header
tags which have as descendant .pagename > a[href="https://www.reddit.com/r/all"]
. However it doesn't seem possible to group as such:
(.header .pagename > a[href="https://www.reddit.com/r/all"]) ~ .content {}
What can I do?