module Crass

def self.parse(input, options = {})


CSS 3 syntax rules.
such as the IE "*" hack will be preserved even though they violate
* **:preserve_hacks** - If `true`, certain non-standard browser hacks

`:comment` tokens.
* **:preserve_comments** - If `true`, comments will be preserved as

prevent stack exhaustion. Defaults to {Parser::DEFAULT_MAXIMUM_DEPTH}.
functions. Constructs nested more deeply than this are discarded to
* **:maximum_depth** - Maximum nesting depth for simple blocks and

Options:

Parses _input_ as a CSS stylesheet and returns a parse tree.
def self.parse(input, options = {})
  Parser.parse_stylesheet(input, options)
end

def self.parse_properties(input, options = {})

See {Crass.parse} for _options_.

HTML element's `style` attribute) and returns a parse tree.
Parses _input_ as a string of CSS properties (such as the contents of an
def self.parse_properties(input, options = {})
  Parser.parse_properties(input, options)
end