Is there a CSS parser for C#? [closed]

Solution 1:

ExCSS (supports CSS2.1 and CSS3) on GitHub: https://github.com/TylerBrinks/ExCSS.

Which is a newer version of the code project article: http://www.codeproject.com/KB/recipes/CSSParser.aspx

Solution 2:

And a slightly slower search turns up the blog post "CSS parser class in .NET" which embeds this gist on GitHub (in case the blog ever dies).

Solution 3:

There is a CSS grammar file for GoldParser:

http://goldparser.org/grammars/files/css.zip

GoldParser is easy to include in a C# project, and generates an real LALR parser - not some regex hack.