You could use Selenium, which is a web testing framework. This way you could assert what styles are to be applied to elements in the DOM etc.
Selenium
Otherwise, not sure what your aim is. Unit testing is, as the name suggests, testing 'Units', and to me, this only makes sense with code, not css.