Skip to content

[css-cascade] Clarify the specificity of a declaration. #11305

Open
@Alohci

Description

Every Cascade spec level from 3 to 6 contains the same text for the specificity of a declaration - "Each declaration has the same specificity as the style rule it appears in."

But as far as I can tell, nothing says what the specificity of a rule is. After all what is the specificity of this rule?

p, #x, .y { color: red }

I think the text should say something like "Each declaration has the same specificity as the highest specificity matching selector belonging to the rule it appears in."

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions