zmoazeni/csscss

Terminology

Closed this issue · 4 comments

README says stuff like

{.contact .content .primary} and {article, #comments} share 5 rules

Do you mean declarations?

Yeah, my bad on that one.

After installing this and trying it, I'm not sure that it actually does what I need.

I have a CSS file that due to someone's sloppy merging, contains many duplicate rules. My understanding of the word "rule" is that it's something like this:

.class {
  property: value;
  property-two: value2;
}

So I mean that it's the actual selector rule (.class) that is duplicated, and it's this that I need to find. Can csscss help with that? It seems to just find duplicate declarations/properties within the rule, which is also very useful, but not quite what I need.

Edit: I found a tool called uCSS which finds duplicates.

Yeah, csscss treats different instances of .class as one. So that's not a good fit for what you're looking for.

Changed to "declarations" in 0630d34 and released in v1.3.3