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

Report specificity mode #53

Closed
bartveneman opened this issue Aug 25, 2018 · 1 comment
Closed

Report specificity mode #53

bartveneman opened this issue Aug 25, 2018 · 1 comment
Labels
✨ enhancement New feature or request

Comments

@bartveneman
Copy link
Member

As @csswizardry writes in his article https://csswizardry.com/2016/06/improving-your-css-with-parker/, it would be nice to be able to the specificity that is most common in your stylesheet.

It would be quite nice to know that ‘most of your selectors have class-level specificity’, rather than ‘the average specificity across all of your selectors is roughly that of a class’. A subtle but significant distinction.

stylesheets: {
  specificity: {
    mode: 
      total: 1234,
      share: 0.32,
      specificity: {
        a: 0,
        b: 0,
        c: 2,
        d: 0
      }
    }
  },
  top: [{ ... }}
}
@bartveneman bartveneman added the ✨ enhancement New feature or request label Sep 2, 2018
@bartveneman
Copy link
Member Author

Ugh, dupes #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Development

No branches or pull requests

1 participant