It is the CSS, or failing that, the interaction between Javascript and CSS, which I haven't seen any way to test automatically (such test would be able to answer 'given this code, does the resulting DOM look like picture $N').
Usually when there is something wrong with the Javascript it blows up in our faces.
So if anybody knows of a testing framework that can do this, please tell me about it.