Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 476 Bytes

File metadata and controls

19 lines (10 loc) · 476 Bytes

Example

./bin/css-coverage --html ./test/test.html --css ./test/test.css --verbose

Notes

Each entry needs to contain:

selectors (id is not necessary; the index is the id)

Example: [['body'], ['div.foo']]

Note: It's a 2-dimensional array because each rule can have multiple selectors

Then, PhantomJS will output:

count (id is not necessary; the index is the id)

and css-coverage will translate that back (using sourcemap) to file, lineStart, lineEnd