News for hackers. Stuff that matters.
Re:Tools for Auditing CSS by tyingq on Thursday April 01, 2021 @07:37PM (#26667625)
Chrome has a css coverage tool built in[1]. I suppose it's tricky though, since some html is only visible if there an error (error boxes, etc), or only visible in some rare state (logged in as admin, etc).

Screenshot of it looking at unused CSS on HN: https://imgur.com/a/TLywsv5

[1] https://developer.chrome.com/docs/devtools/coverage/

Re:Tools for Auditing CSS by mgerullis on Friday April 02, 2021 @06:37AM (#26670356)
Mhh I am sure it could be possible to walk the app with cypress or puppeteer while raising this coverage.
Re:Tools for Auditing CSS by Waterluvian on Thursday April 01, 2021 @08:09PM (#26667830)
Huh. I wasn't aware. Thanks. I'll have to see if there's a sensible way to get the results in a format that can be used to progrmatically cull a build output.
Re:Tools for Auditing CSS by tyingq on Thursday April 01, 2021 @08:26PM (#26667929)