Skip to content

Fix no-duplicate-selectors false negatives for equivalent compound selectors #7869

@Mouvedia

Description

@Mouvedia

What minimal example or steps are needed to reproduce the bug?

.a.b {}
/* … */
.b.a {}
#a.b {}
/* … */
.b#a {}
div.a.b {}
/* … */
div.b.a {}

What minimal configuration is needed to reproduce the bug?

{
  "rules": {
    "no-duplicate-selectors": true
  }
}

ref: https://drafts.csswg.org/selectors/#compound

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions