Skip to content

Variable specificity for a given element #111

@nzakas

Description

@nzakas

The specificity of a rule should always be equal for rules that style the same element.

html body .myModule div .hd{...}
.myModule2 .hd {...}

versus

.myModule .hd{...}
.myModule2 .hd{...}

Perhaps better described as "the last part of a selector should always have the same number of preceding parts"? Not really just about elements?

all parts are not created equal. Must be specificity aware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions