A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Duplicate CSS Selectors

damo1884
2016-07-13

Hi All,

I think it would be great to have a way to see warnings in the Chrome Dev Tools about multiple definitions of the same CSS selector.

I am in the process of writing a node.js module based on CSS Shampoo to find duplicate selectors and merge them. (Currently CSS Shampoo doesn’t merge the same way I would expect so I need to modify it)

Regards Damien

AshleyScirra
2016-07-14

This sounds more like a specific Chrome dev tools feature request. There’s nothing that needs standardising for this, is there?

simevidas
2016-07-16

Stylelint has a rule for duplicate selectors: http://stylelint.io/user-guide/rules/no-duplicate-selectors/