1
I have this code html
:
<article>
<p class="ola"> cafe </p>
<p>Primeiro parágrafo</p>
<p>Segundo parágrafo</p>
<aside>
<h1>Informações</h1>
<p>No way</p>
</aside>
<p>Terceiro parágrafo</p>
</article>
And this CSS
:
article:not(.ola) p {
background-color: rgb(222, 111, 55);
color: rgb(66, 255, 44);
}
For me, the class paragraph ola
should be ignored because of the use of :not()
(thus, cafe
should be without style). But, it was also stylized. I don’t understand why of it. Maybe it’s because I’m using the descending combinator together, but I couldn’t identify the problem.