I'm looking for a tool that can scan over a set of HTML pages, and check for bad or out of sync CSS usage. In particular, I want to check the following:
- Each CSS rule in the CSS files is used at least once by some HTML page.
- Each CSS class referenced on the HTML pages is actually defined in a CSS file.
- (Nice to have) that inline styles do not duplicate existing CSS classes (e.g. that there are no tags with inline styles for which there is an equivalent CSS class already defined).
Is there an existing tool that will do this?