Two things I have found to be useful is this: http://blog.whatwg.org/vnu-parser-1-4
I use deadweight for the css: https://github.com/aanand/deadweight
Or ucss https://github.com/operasoftware/ucss
And for my client side rendering, i grab the page contents with phantomjs, then run it by vnu and deadweight/ucss.