Do CSS combinators add specificity to a CSS selector?
Do CSS combinators add specificity to a CSS selector? The mdn article about CSS specificity states: Universal selector (*), combinators (+, >, ~, ' ') and negation pseudo-class (:not()) have no effect on specificity. (The selectors declared inside :not() do, however.) However my experience is that combinators do have an effect, see this example: div > p { color: red; } p { color: green; } <div> <p>First Paragraph</p> <p>Second Paragraph</p> </div> So the above quote claims, that CSS combinators have no effect on specificity. If that quote is right, how is it meant then, as my code example shows the opposite? possible duplicate of : stackoverflow.com/questions/2809024/points-in-css-specificity – Temani Afif Jul 1 at 19:11 could be except they never mention ...