Nice work. I like how it all stays declarative in the CSS too.
I would recommend outsourcing your parsing though. It's a tough job and things like CSS hacks can really take your regexes for a loop.
I'd recommend trying out http://glazman.org/JSCSSP/ or https://github.com/nzakas/parser-lib/tree/master/src/css which Nicholas uses for CSSLint.