Lets have this:
<blockquote>
<header>header</header>
<p>no</p>
<p>no</p>
<p>no</p>
</blockquote>
<blockquote>
<p>yes</p>
<p>yes</p>
<p>yes</p>
</blockquote>
<blockquote>
<p>no</p>
<header>header</header>
<p>no</p>
<p>no</p>
</blockquote>
I am searching for a CSS selector (without altering the HTML) that target all the p
that are both inside a blockquote
but without a header
sibling (those with the word “yes”).
I have tried with: blockquote :not(header) ~ p
, blockquote > p ~ :not(header)
, and similar others with no avail. Is this even possible with CSS only?