I've used example in the spec Calculating a selector's specificity to determine selectors weight. Both selectors have specificity: 11 points. 11 = 10 (class name) + 1 (element name)
According to specification w3c cascading rules the 2nd selector should override the 1st one because it appears later in the file. Therefore, my question is why the paragraph is still red?
p.c11 {
color: darkred;
}
p .c11 {
color: magenta;
}
<p>
<p class="c11">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed, eius iusto provident laudantium voluptates adipisci voluptatem amet repudiandae ex aspernatur rem voluptatibus recusandae vero corporis distinctio quia reprehenderit dolores facere.
</p>
</p>
