Skip to content

ov0364/csscoveragejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSSCoverageJS

A CSS coverage tool written in JavaScript.

The CSS coverage tool reports the CSS rules which are matching the DOM.

Creating the CSSCoverageJS tool

Step 1: Find a CSS parser that runs in the browser. This blog is suggesting Gonzales as the best CSS parser written in JavaScript.

Step 2: Find a CSS selector engine. JQuery should do this trick.

Step 3: Combine the CSS parser and CSS selector engine. Parse css, query these selectors and store the number of hits.

Todo: Step 4: Find a pretty print CSS engine. The sunlightjs is highlighting source code and has support for CSS.

About

A css coverage tool written in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published