Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule order should be normalised for multiple class selectors #2

Open
andrewnicols opened this issue Jun 13, 2017 · 0 comments
Open

Comments

@andrewnicols
Copy link

Take two files:

a.css

.a.b.c {
  font-color: transparent;
}

b.css

.b.c.a {
  font-color: transparent;
}

css-compare does not normalise the order of the multiple class selectors leading to a large number of false positives.

2020 nicols@boysenberry:~/git/tmp/scss> css-compare -c a.css -t b.css
Index: b.css
===================================================================
--- b.css
+++ b.css
@@ -1,3 +1,3 @@
-.a.b.c {
+.b.c.a {
   font-color: transparent;
 }
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant