CLI tool to count the CSS rules, selectors and declarations on a web page.
Counts the CSS rules, selectors and declarations on a web page as well as the total number of inline style blocks and linked stylesheets.
Internet Explorer version 9 and below have a limit on the number of CSS rules & selectors they can parse. Once it reaches that limit, it will fail silently and ignore any further CSS declarations which result in aspects of the page not having styling applied. Additionally, those versions of IE will also fail to parse any stylesheets after the 31st (inline style blocks count towards this total).
$ [sudo] npm install -g selector-detector
The source is available for download from GitHub.
$ git clone email@example.com:okize/selector-detector.git && cd selector-detector$ npm install
Released under the MIT License.