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

Idea: List the 10 most specific selectors #17

Open
simevidas opened this issue Mar 8, 2014 · 0 comments
Open

Idea: List the 10 most specific selectors #17

simevidas opened this issue Mar 8, 2014 · 0 comments

Comments

@simevidas
Copy link

Hey, I ran your tool against the main CSS file of BBC's new responsive site. See the output here: https://twitter.com/simevidas/status/441716656214011904

I've noticed that the most specific selector is:

#locator #locator-search-container.disabled button #locator-submit

which is a needlessly specific selector (no need for 3 ID selectors) and BBC's team should probably refactor it to something simpler.

This gave me an idea: Find the most specific selectors in my code and try to simply them. Your tool could provide this information. Would be quite useful, I think. What do you think?

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