Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 draft.

WWW: https://github.com/rgrove/crass/
