Duplicate CSS Selectors


#1

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


#2

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


#3

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