Introduction
CSSUnit is a unit testing framework/tool for cascading stylesheets that allows you to write tests for you webpages to pass. To use CSSUnit, you will need a copy of the code which you can download here.
Basic principles
Advanced features Wishlist
In order to take full advantage of CSS Unit, I think there are several advanced features that will need to be created. I have yet to dogfood it in a proper continuous integration environment, but I imagine this would be fairly straight forward to do with Hudson and Selenium, the same way you would do Javascript unit testing with YUIunit or Qunit. Then there is the matter of SVN, ideally we would store the profiles in an external JSON file and read them in with a query string parameter, allowing multiple developers to edit the test profile settings, also allowing you to deploy the test profile to multiple browsers/environments. Finally having some kind of visualisations for the combined result set would also be desirable to really get the full benefits of unit testing CSS.
Contribute
cssUnit is an open source gitHub hosted project which can be checked out, watched or forked from here : http://github.com/SimonKenyonShepard/cssunit/tree/master
If you would like to contribute to the main trunk, or have your branch merged in, please contact me @ simonKenyonShpard[at]trisis[dot]co[dot]uk.
