├── VERSION ├── test └── data │ ├── test_nth │ ├── nth.0.l │ ├── nth.1.l │ ├── nth.4.l │ ├── nth.0.css │ ├── nth.1.css │ ├── nth.2.css │ ├── nth.2.l │ ├── nth.3.css │ ├── nth.3.l │ ├── nth.4.css │ ├── nth.4.p │ ├── nth.0.p │ ├── nth.1.p │ ├── nth.2.p │ └── nth.3.p │ ├── test_block │ ├── block.0.l │ ├── block.1.l │ ├── block.0.css │ ├── block.1.css │ ├── block.2.css │ ├── block.2.l │ ├── block.3.css │ ├── block.3.l │ ├── block.s.0.css │ ├── block.s.0.l │ ├── block.0.p │ ├── block.4.l │ ├── block.c.0.l │ ├── block.s.1.css │ ├── block.s.1.l │ ├── block.s.2.css │ ├── block.s.2.l │ ├── block.4.css │ ├── block.c.0.css │ ├── block.s.3.css │ ├── block.s.3.l │ ├── block.c.1.css │ ├── block.c.1.l │ ├── block.c.2.l │ ├── block.s.4.l │ ├── block.c.2.css │ ├── block.s.4.css │ ├── block.1.p │ ├── block.c.3.l │ ├── block.s.0.p │ ├── block.c.3.css │ ├── block.c.0.p │ ├── block.c.4.l │ ├── block.c.4.css │ ├── block.s.1.p │ ├── block.c.1.p │ ├── block.2.p │ ├── block.3.p │ ├── block.s.2.p │ ├── block.c.2.p │ ├── block.s.3.p │ ├── block.c.3.p │ ├── block.4.p │ ├── block.s.4.p │ └── block.c.4.p │ ├── test_delim │ ├── delim.0.css │ ├── delim.0.l │ └── delim.0.p │ ├── test_ident │ ├── ident.0.css │ ├── ident.0.l │ ├── ident.1.css │ ├── ident.1.l │ ├── ident.2.l │ ├── ident.2.css │ ├── ident.3.l │ ├── ident.4.css │ ├── ident.4.l │ ├── ident.3.css │ ├── ident.4.p │ ├── ident.0.p │ ├── ident.1.p │ ├── ident.2.p │ └── ident.3.p │ ├── test_shash │ ├── shash.1.l │ ├── shash.0.css │ ├── shash.0.l │ ├── shash.1.css │ ├── shash.0.p │ └── shash.1.p │ ├── test_unary │ ├── unary.0.css │ ├── unary.0.l │ ├── unary.1.css │ ├── unary.1.l │ ├── unary.0.p │ └── unary.1.p │ ├── test_value │ ├── value.0.css │ ├── value.0.l │ ├── value.1.l │ ├── value.1.css │ ├── value.2.l │ ├── value.4.css │ ├── value.4.l │ ├── value.rgb.1.cl │ ├── value.2.css │ ├── value.3.l │ ├── value.dimension.0.cl │ ├── value.dimension.0.l │ ├── value.dimension.1.cl │ ├── value.dimension.2.cl │ ├── value.rgb.0.cl │ ├── value.vhash.0.cl │ ├── value.vhash.0.l │ ├── value.vhash.1.cl │ ├── value.vhash.1.css │ ├── value.vhash.1.l │ ├── value.vhash.2.l │ ├── value.vhash.3.cl │ ├── value.vhash.3.l │ ├── value.3.css │ ├── value.dimension.0.css │ ├── value.dimension.1.css │ ├── value.dimension.1.l │ ├── value.rgb.1.css │ ├── value.rgb.1.l │ ├── value.rgb.2.cl │ ├── value.vhash.0.css │ ├── value.vhash.2.cl │ ├── value.vhash.2.css │ ├── value.vhash.3.css │ ├── value.dimension.2.css │ ├── value.dimension.2.l │ ├── value.rgb.0.css │ ├── value.rgb.0.l │ ├── value.rgb.2.l │ ├── value.rgb.2.css │ ├── value.0.p │ ├── value.1.p │ ├── value.3.p │ ├── value.4.p │ └── value.2.p │ ├── test_vhash │ ├── vhash.1.l │ ├── vhash.0.css │ ├── vhash.0.l │ ├── vhash.1.css │ ├── vhash.0.p │ └── vhash.1.p │ ├── test_attrib │ ├── attrib.0.l │ ├── attrib.2.css │ ├── attrib.2.l │ ├── attrib.0.css │ ├── attrib.1.css │ ├── attrib.1.l │ ├── attrib.s.0.l │ ├── attrib.s.0.css │ ├── attrib.s.1.css │ ├── attrib.s.1.l │ ├── attrib.2.p │ ├── attrib.c.0.css │ ├── attrib.c.0.l │ ├── attrib.c.1.l │ ├── attrib.c.1.css │ ├── attrib.0.p │ ├── attrib.1.p │ ├── attrib.s.0.p │ ├── attrib.s.1.p │ ├── attrib.c.0.p │ └── attrib.c.1.p │ ├── test_braces │ ├── braces.0.css │ ├── braces.0.l │ ├── braces.1.css │ ├── braces.1.l │ ├── braces.2.css │ ├── braces.2.l │ ├── braces.3.l │ ├── braces.4.css │ ├── braces.4.l │ ├── braces.5.css │ ├── braces.5.l │ ├── braces.6.css │ ├── braces.6.l │ ├── braces.7.l │ ├── braces.c.0.cl │ ├── braces.c.1.cl │ ├── braces.c.2.cl │ ├── braces.c.4.cl │ ├── braces.c.5.cl │ ├── braces.c.6.cl │ ├── braces.s.0.cl │ ├── braces.s.0.l │ ├── braces.s.1.cl │ ├── braces.s.2.cl │ ├── braces.s.4.cl │ ├── braces.s.4.l │ ├── braces.s.5.cl │ ├── braces.s.6.cl │ ├── braces.3.css │ ├── braces.7.css │ ├── braces.8.css │ ├── braces.8.l │ ├── braces.c.3.cl │ ├── braces.c.7.cl │ ├── braces.s.0.css │ ├── braces.s.1.css │ ├── braces.s.1.l │ ├── braces.s.2.css │ ├── braces.s.2.l │ ├── braces.s.3.cl │ ├── braces.s.4.css │ ├── braces.s.5.css │ ├── braces.s.5.l │ ├── braces.s.6.css │ ├── braces.s.6.l │ ├── braces.s.7.cl │ ├── braces.c.0.css │ ├── braces.c.0.l │ ├── braces.c.4.css │ ├── braces.c.4.l │ ├── braces.s.3.l │ ├── braces.s.7.l │ ├── braces.0.p │ ├── braces.4.p │ ├── braces.c.1.l │ ├── braces.c.2.l │ ├── braces.c.5.l │ ├── braces.c.6.l │ ├── braces.s.3.css │ ├── braces.s.7.css │ ├── braces.c.1.css │ ├── braces.c.2.css │ ├── braces.c.5.css │ ├── braces.c.6.css │ ├── braces.c.3.css │ ├── braces.c.3.l │ ├── braces.c.7.css │ ├── braces.c.7.l │ ├── braces.s.0.p │ ├── braces.s.4.p │ ├── braces.1.p │ ├── braces.2.p │ ├── braces.5.p │ ├── braces.6.p │ ├── braces.c.0.p │ ├── braces.c.4.p │ ├── braces.s.1.p │ ├── braces.s.2.p │ ├── braces.s.5.p │ ├── braces.s.6.p │ ├── braces.3.p │ ├── braces.7.p │ ├── braces.8.p │ ├── braces.c.2.p │ ├── braces.c.6.p │ ├── braces.c.1.p │ ├── braces.c.5.p │ ├── braces.s.3.p │ ├── braces.s.7.p │ ├── braces.c.3.p │ └── braces.c.7.p │ ├── test_clazz │ ├── clazz.0.css │ ├── clazz.0.l │ └── clazz.0.p │ ├── test_number │ ├── number.0.css │ ├── number.0.l │ ├── number.1.cl │ ├── number.1.css │ ├── number.1.l │ ├── number.2.l │ ├── number.3.cl │ ├── number.3.css │ ├── number.3.l │ ├── number.4.cl │ ├── number.4.css │ ├── number.4.l │ ├── number.5.cl │ ├── number.5.css │ ├── number.5.l │ ├── number.6.cl │ ├── number.6.css │ ├── number.6.l │ ├── number.7.cl │ ├── number.2.css │ ├── number.7.css │ ├── number.7.l │ ├── number.0.p │ ├── number.1.p │ └── number.2.p │ ├── test_operator │ ├── operator.0.l │ ├── operator.1.l │ ├── operator.2.l │ ├── operator.3.l │ ├── operator.0.css │ ├── operator.1.css │ ├── operator.2.css │ ├── operator.3.css │ ├── operator.0.p │ ├── operator.1.p │ ├── operator.2.p │ └── operator.3.p │ ├── test_string │ ├── string.0.l │ ├── string.1.l │ ├── string.0.css │ ├── string.1.css │ ├── string.2.css │ ├── string.2.l │ ├── string.3.css │ ├── string.3.l │ ├── string.0.p │ ├── string.1.p │ ├── string.2.p │ └── string.3.p │ ├── test_atrules │ ├── atrules.0.css │ ├── atrules.0.l │ ├── atrules.c.0.cl │ ├── atrules.1.css │ ├── atrules.1.l │ ├── atrules.2.l │ ├── atrules.s.0.css │ ├── atrules.s.0.l │ ├── atrules.s.1.cl │ ├── atrules.s.1.l │ ├── atrules.2.css │ ├── atrules.c.0.css │ ├── atrules.c.0.l │ ├── atrules.s.1.css │ ├── atrules.c.1.css │ ├── atrules.c.1.l │ ├── atrules.0.p │ ├── atrules.s.0.p │ ├── atrules.c.0.p │ ├── atrules.2.p │ ├── atrules.1.p │ ├── atrules.s.1.p │ └── atrules.c.1.p │ ├── test_combinator │ ├── combinator.0.css │ ├── combinator.0.l │ ├── combinator.1.css │ ├── combinator.1.l │ ├── combinator.2.css │ ├── combinator.2.l │ ├── combinator.0.p │ ├── combinator.1.p │ └── combinator.2.p │ ├── test_comment │ ├── comment.0.l │ ├── comment.0.css │ └── comment.0.p │ ├── test_decldelim │ ├── decldelim.0.css │ ├── decldelim.0.l │ └── decldelim.0.p │ ├── test_dimension │ ├── dimension.0.l │ ├── dimension.1.l │ ├── dimension.0.css │ ├── dimension.1.css │ ├── dimension.2.css │ ├── dimension.2.l │ ├── dimension.0.p │ ├── dimension.1.p │ └── dimension.2.p │ ├── test_funktion │ ├── function.0.l │ ├── function.1.l │ ├── function.0.css │ ├── function.1.css │ ├── function.2.l │ ├── function.3.css │ ├── function.3.l │ ├── function.4.css │ ├── function.4.l │ ├── function.6.l │ ├── function.c.0.cl │ ├── function.c.1.cl │ ├── function.c.3.cl │ ├── function.c.4.cl │ ├── function.s.0.cl │ ├── function.s.0.css │ ├── function.s.0.l │ ├── function.s.1.cl │ ├── function.s.3.cl │ ├── function.s.4.cl │ ├── function.2.css │ ├── function.6.css │ ├── function.c.0.l │ ├── function.c.2.cl │ ├── function.s.1.css │ ├── function.s.1.l │ ├── function.s.2.cl │ ├── function.c.0.css │ ├── function.s.2.css │ ├── function.s.2.l │ ├── function.s.3.css │ ├── function.s.3.l │ ├── function.s.4.css │ ├── function.s.4.l │ ├── function.c.1.css │ ├── function.c.1.l │ ├── function.5.css │ ├── function.5.l │ ├── function.c.2.css │ ├── function.c.2.l │ ├── function.s.5.cl │ ├── function.c.5.cl │ ├── function.c.3.css │ ├── function.c.3.l │ ├── function.c.4.css │ ├── function.c.4.l │ ├── function.s.5.css │ ├── function.s.5.l │ ├── function.0.p │ ├── function.s.0.p │ ├── function.1.p │ ├── function.2.p │ ├── function.c.0.p │ ├── function.c.5.l │ ├── function.c.5.css │ ├── function.6.p │ ├── function.s.1.p │ ├── function.3.p │ ├── function.4.p │ ├── function.s.2.p │ ├── function.c.1.p │ ├── function.c.2.p │ ├── function.s.3.p │ ├── function.s.4.p │ ├── function.c.3.p │ ├── function.c.4.p │ ├── function.5.p │ ├── function.s.5.p │ └── function.c.5.p │ ├── test_percentage │ ├── percentage.0.l │ ├── percentage.0.css │ ├── percentage.1.css │ ├── percentage.1.l │ ├── percentage.2.css │ ├── percentage.2.l │ ├── percentage.0.p │ ├── percentage.1.p │ └── percentage.2.p │ ├── test_property │ ├── property.0.css │ ├── property.0.l │ ├── property.1.css │ ├── property.1.l │ ├── property.0.p │ └── property.1.p │ ├── test_pseudoc │ ├── pseudoc.0.css │ ├── pseudoc.0.l │ ├── pseudoc.1.css │ ├── pseudoc.1.l │ ├── pseudoc.0.p │ └── pseudoc.1.p │ ├── test_pseudoe │ ├── pseudoe.0.css │ ├── pseudoe.0.l │ ├── pseudoe.1.css │ ├── pseudoe.1.l │ ├── pseudoe.0.p │ └── pseudoe.1.p │ ├── test_ruleset │ ├── ruleset.0.css │ ├── ruleset.0.l │ ├── ruleset.c.0.cl │ ├── ruleset.s.0.cl │ ├── ruleset.1.l │ ├── ruleset.2.css │ ├── ruleset.2.l │ ├── ruleset.c.2.cl │ ├── ruleset.s.2.cl │ ├── ruleset.1.css │ ├── ruleset.3.l │ ├── ruleset.c.1.cl │ ├── ruleset.s.0.l │ ├── ruleset.s.1.cl │ ├── ruleset.3.css │ ├── ruleset.c.3.cl │ ├── ruleset.s.0.css │ ├── ruleset.s.3.cl │ ├── value.color.ident.0.cl │ ├── value.color.ident.0.css │ ├── value.color.ident.0.l │ ├── ruleset.s.2.css │ ├── ruleset.s.2.l │ ├── value.color.ident.1.cl │ ├── value.color.ident.1.css │ ├── value.color.ident.1.l │ ├── ruleset.s.1.l │ ├── ruleset.s.1.css │ ├── ruleset.s.3.css │ ├── ruleset.s.3.l │ ├── ruleset.c.0.l │ ├── ruleset.c.0.css │ ├── ruleset.c.2.l │ ├── ruleset.c.2.css │ ├── ruleset.c.1.l │ ├── ruleset.c.1.css │ ├── ruleset.c.3.l │ ├── ruleset.c.3.css │ ├── ruleset.4.css │ ├── ruleset.4.l │ ├── ruleset.s.4.cl │ ├── ruleset.s.4.l │ ├── ruleset.s.4.css │ ├── ruleset.5.l │ ├── ruleset.5.css │ ├── ruleset.s.5.cl │ ├── ruleset.0.p │ ├── ruleset.s.5.css │ ├── ruleset.s.5.l │ ├── ruleset.2.p │ ├── ruleset.s.0.p │ ├── ruleset.1.p │ ├── ruleset.c.0.p │ ├── ruleset.3.p │ ├── ruleset.s.2.p │ ├── ruleset.c.2.p │ ├── ruleset.4.p │ ├── ruleset.s.1.p │ ├── ruleset.s.4.p │ ├── ruleset.5.p │ ├── ruleset.c.1.p │ ├── ruleset.s.3.p │ └── ruleset.c.3.p │ ├── test_selector │ ├── selector.0.css │ ├── selector.0.l │ ├── selector.1.css │ ├── selector.1.l │ ├── selector.0.p │ └── selector.1.p │ ├── test_atkeyword │ ├── atkeyword.0.css │ ├── atkeyword.0.l │ ├── atkeyword.1.l │ ├── atkeyword.1.css │ ├── atkeyword.0.p │ └── atkeyword.1.p │ ├── test_atruleb │ ├── atruleb.0.css │ ├── atruleb.0.l │ ├── atruleb.c.0.cl │ ├── atruleb.s.0.cl │ ├── atruleb.1.css │ ├── atruleb.1.l │ ├── atruleb.s.1.cl │ ├── atruleb.2.l │ ├── atruleb.s.0.css │ ├── atruleb.s.0.l │ ├── atruleb.s.2.cl │ ├── atruleb.2.css │ ├── atruleb.s.1.l │ ├── atruleb.c.1.cl │ ├── atruleb.s.1.css │ ├── atruleb.c.2.cl │ ├── atruleb.s.2.css │ ├── atruleb.s.2.l │ ├── atruleb.c.0.css │ ├── atruleb.c.0.l │ ├── atruleb.c.1.css │ ├── atruleb.c.1.l │ ├── atruleb.c.2.css │ ├── atruleb.c.2.l │ ├── atruleb.0.p │ ├── atruleb.1.p │ ├── atruleb.s.0.p │ ├── atruleb.c.0.p │ ├── atruleb.s.1.p │ ├── atruleb.c.1.p │ ├── atruleb.2.p │ ├── atruleb.s.2.p │ └── atruleb.c.2.p │ ├── test_attrselector │ ├── attrselector.0.css │ ├── attrselector.0.l │ ├── attrselector.1.css │ ├── attrselector.1.l │ ├── attrselector.2.css │ ├── attrselector.2.l │ ├── attrselector.3.css │ ├── attrselector.3.l │ ├── attrselector.4.css │ ├── attrselector.4.l │ ├── attrselector.5.css │ ├── attrselector.5.l │ ├── attrselector.0.p │ ├── attrselector.1.p │ ├── attrselector.2.p │ ├── attrselector.3.p │ ├── attrselector.4.p │ └── attrselector.5.p │ ├── test_important │ ├── important.0.l │ ├── important.0.css │ ├── important.0.p │ ├── important.c.0.cl │ ├── important.s.0.cl │ ├── important.s.0.l │ ├── important.c.0.l │ ├── important.s.0.css │ ├── important.c.0.css │ ├── important.s.0.p │ └── important.c.0.p │ ├── test_stylesheet │ ├── stylesheet.0.css │ ├── stylesheet.0.l │ ├── stylesheet.2.css │ ├── stylesheet.2.l │ ├── stylesheet.4.l │ ├── stylesheet.c.0.cl │ ├── stylesheet.s.0.cl │ ├── stylesheet.1.l │ ├── stylesheet.3.css │ ├── stylesheet.3.l │ ├── stylesheet.4.css │ ├── stylesheet.s.2.cl │ ├── stylesheet.s.3.cl │ ├── stylesheet.1.css │ ├── stylesheet.s.1.cl │ ├── stylesheet.s.2.css │ ├── stylesheet.s.2.l │ ├── stylesheet.s.0.css │ ├── stylesheet.s.0.l │ ├── stylesheet.s.3.css │ ├── stylesheet.s.3.l │ ├── stylesheet.c.0.css │ ├── stylesheet.c.0.l │ ├── stylesheet.s.1.l │ ├── stylesheet.s.1.css │ ├── stylesheet.2.p │ ├── stylesheet.3.p │ ├── stylesheet.s.2.p │ ├── stylesheet.0.p │ ├── stylesheet.4.p │ ├── stylesheet.s.0.p │ ├── stylesheet.s.3.p │ ├── stylesheet.c.0.p │ ├── stylesheet.1.p │ └── stylesheet.s.1.p │ ├── test_uri │ ├── uri.0.l │ ├── uri.1.css │ ├── uri.1.l │ ├── uri.0.css │ ├── uri.c.0.cl │ ├── uri.s.0.cl │ ├── uri.s.1.cl │ ├── uri.s.1.l │ ├── uri.c.1.cl │ ├── uri.s.0.css │ ├── uri.s.0.l │ ├── uri.s.1.css │ ├── uri.1.p │ ├── uri.c.0.css │ ├── uri.c.0.l │ ├── uri.c.1.css │ ├── uri.c.1.l │ ├── uri.0.p │ ├── uri.c.1.p │ ├── uri.s.1.p │ ├── uri.s.0.p │ └── uri.c.0.p │ ├── test_atruler │ ├── atruler.0.css │ ├── atruler.0.l │ ├── atruler.1.l │ ├── atruler.c.0.cl │ ├── atruler.s.0.cl │ ├── atruler.1.css │ ├── atruler.s.1.cl │ ├── atruler.2.css │ ├── atruler.2.l │ ├── atruler.s.2.cl │ ├── atruler.s.0.css │ ├── atruler.s.0.l │ ├── atruler.c.1.cl │ ├── atruler.s.1.l │ ├── atruler.c.2.cl │ ├── atruler.s.1.css │ ├── atruler.s.2.css │ ├── atruler.s.2.l │ ├── atruler.c.0.css │ ├── atruler.c.0.l │ ├── webkit.keyfraymes.0.l │ ├── webkit.keyfraymes.0.css │ ├── atruler.c.1.l │ ├── atruler.c.1.css │ ├── atruler.c.2.l │ ├── atruler.c.2.css │ ├── atruler.0.p │ ├── atruler.1.p │ ├── atruler.s.0.p │ ├── atruler.c.0.p │ ├── atruler.s.1.p │ ├── atruler.2.p │ └── atruler.c.1.p │ ├── test_simpleselector │ ├── simpleselector.0.l │ ├── simpleselector.1.l │ ├── simpleselector.10.l │ ├── simpleselector.2.l │ ├── simpleselector.3.l │ ├── simpleselector.5.css │ ├── simpleselector.5.l │ ├── simpleselector.6.css │ ├── simpleselector.6.l │ ├── simpleselector.7.css │ ├── simpleselector.7.l │ ├── simpleselector.8.css │ ├── simpleselector.8.l │ ├── simpleselector.0.css │ ├── simpleselector.1.css │ ├── simpleselector.10.css │ ├── simpleselector.2.css │ ├── simpleselector.3.css │ ├── simpleselector.s.0.cl │ ├── simpleselector.s.0.css │ ├── simpleselector.s.0.l │ ├── simpleselector.s.1.cl │ ├── simpleselector.s.1.l │ ├── simpleselector.s.2.cl │ ├── simpleselector.s.2.l │ ├── simpleselector.s.3.cl │ ├── simpleselector.s.3.l │ ├── simpleselector.11.css │ ├── simpleselector.11.l │ ├── simpleselector.12.css │ ├── simpleselector.12.l │ ├── simpleselector.4.css │ ├── simpleselector.4.l │ ├── simpleselector.c.0.cl │ ├── simpleselector.c.0.css │ ├── simpleselector.c.0.l │ ├── simpleselector.s.1.css │ ├── simpleselector.s.2.css │ ├── simpleselector.s.3.css │ ├── simpleselector.s.4.cl │ ├── simpleselector.9.css │ ├── simpleselector.9.l │ ├── simpleselector.c.1.css │ ├── simpleselector.c.1.l │ ├── simpleselector.c.2.css │ ├── simpleselector.c.2.l │ ├── simpleselector.c.3.css │ ├── simpleselector.c.3.l │ ├── simpleselector.s.4.l │ ├── simpleselector.c.4.css │ ├── simpleselector.s.4.css │ ├── simpleselector.0.p │ ├── simpleselector.2.p │ ├── simpleselector.1.p │ ├── simpleselector.5.p │ ├── simpleselector.10.p │ ├── simpleselector.s.0.p │ ├── simpleselector.6.p │ ├── simpleselector.7.p │ ├── simpleselector.8.p │ ├── simpleselector.c.0.p │ ├── simpleselector.3.p │ ├── simpleselector.s.1.p │ ├── simpleselector.s.2.p │ ├── simpleselector.s.3.p │ ├── simpleselector.c.1.p │ ├── simpleselector.c.2.p │ ├── simpleselector.c.3.p │ ├── simpleselector.9.p │ ├── simpleselector.12.p │ ├── simpleselector.11.p │ ├── simpleselector.4.p │ └── simpleselector.s.4.p │ ├── test_declaration │ ├── declaration.0.css │ ├── declaration.0.l │ ├── declaration.1.css │ ├── declaration.1.l │ ├── declaration.c.0.cl │ ├── declaration.c.1.cl │ ├── declaration.c.2.cl │ ├── declaration.c.3.cl │ ├── declaration.s.0.cl │ ├── declaration.s.0.css │ ├── declaration.s.0.l │ ├── declaration.s.1.cl │ ├── declaration.s.1.css │ ├── declaration.s.1.l │ ├── declaration.s.2.cl │ ├── declaration.s.2.css │ ├── declaration.s.2.l │ ├── declaration.s.3.cl │ ├── declaration.c.0.css │ ├── declaration.c.0.l │ ├── declaration.c.1.css │ ├── declaration.c.1.l │ ├── declaration.s.3.css │ ├── declaration.s.3.l │ ├── declaration.c.2.css │ ├── declaration.c.2.l │ ├── declaration.c.3.l │ ├── declaration.c.3.css │ ├── declaration.0.p │ ├── declaration.1.p │ ├── declaration.s.0.p │ ├── declaration.s.1.p │ ├── declaration.c.0.p │ ├── declaration.c.1.p │ ├── declaration.s.2.p │ ├── declaration.s.3.p │ ├── declaration.c.2.p │ └── declaration.c.3.p │ ├── test_nthselector │ ├── nthselector.0.l │ ├── nthselector.0.css │ ├── nthselector.c.0.cl │ ├── nthselector.s.0.cl │ ├── nthselector.1.css │ ├── nthselector.1.l │ ├── nthselector.c.1.cl │ ├── nthselector.s.0.l │ ├── nthselector.s.1.cl │ ├── nthselector.s.0.css │ ├── nthselector.s.1.css │ ├── nthselector.s.1.l │ ├── nthselector.c.0.l │ ├── nthselector.c.0.css │ ├── nthselector.c.1.css │ ├── nthselector.c.1.l │ ├── nthselector.0.p │ ├── nthselector.1.p │ ├── nthselector.s.0.p │ ├── nthselector.c.0.p │ ├── nthselector.s.1.p │ └── nthselector.c.1.p │ ├── test_functionExpression │ ├── functionExpression.0.l │ ├── functionExpression.0.css │ ├── functionExpression.1.css │ ├── functionExpression.1.l │ ├── functionExpression.3.l │ ├── functionExpression.4.css │ ├── functionExpression.4.l │ ├── functionExpression.5.css │ ├── functionExpression.5.l │ ├── functionExpression.6.l │ ├── functionExpression.3.css │ ├── functionExpression.6.css │ ├── functionExpression.0.p │ ├── functionExpression.2.css │ ├── functionExpression.2.l │ ├── functionExpression.7.l │ ├── functionExpression.1.p │ ├── functionExpression.3.p │ ├── functionExpression.4.p │ ├── functionExpression.5.p │ ├── functionExpression.6.p │ ├── functionExpression.7.css │ ├── functionExpression.2.p │ └── functionExpression.7.p │ └── test_filter │ ├── filter.0.l │ ├── filter.2.l │ ├── filter.3.l │ ├── filter.4.l │ ├── filter.0.css │ ├── filter.2.css │ ├── filter.3.css │ ├── filter.4.css │ ├── filter.5.css │ ├── filter.5.l │ ├── filter.s.0.l │ ├── filter.s.0.css │ ├── filter.c.0.css │ ├── filter.c.0.l │ ├── filter.c.1.css │ ├── filter.c.1.l │ ├── filter.1.l │ ├── filter.1.css │ ├── filter.s.1.l │ ├── filter.s.1.css │ ├── filter.0.p │ ├── filter.2.p │ ├── filter.3.p │ ├── filter.4.p │ ├── filter.5.p │ ├── filter.s.0.p │ ├── filter.c.0.p │ ├── filter.c.1.p │ ├── filter.1.p │ └── filter.s.1.p ├── sample └── injectrule │ ├── test.css │ ├── GNUmakefile │ ├── src │ ├── transformer.ometajs │ └── injectrule.js │ ├── lib │ └── injectrule.js │ └── bin │ └── injectrule ├── src └── cssptt.pre.js ├── bin └── cssp ├── GNUmakefile └── package.json /VERSION: -------------------------------------------------------------------------------- 1 | CSSP v1.0.7 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.0.l: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.1.l: -------------------------------------------------------------------------------- 1 | 2n 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.4.l: -------------------------------------------------------------------------------- 1 | n 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.0.l: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.1.l: -------------------------------------------------------------------------------- 1 | {;} 2 | -------------------------------------------------------------------------------- /test/data/test_delim/delim.0.css: -------------------------------------------------------------------------------- 1 | , 2 | -------------------------------------------------------------------------------- /test/data/test_delim/delim.0.l: -------------------------------------------------------------------------------- 1 | , 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.0.css: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.0.l: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.1.css: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.1.l: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.2.l: -------------------------------------------------------------------------------- 1 | -x 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.0.css: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.1.css: -------------------------------------------------------------------------------- 1 | 2n 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.2.css: -------------------------------------------------------------------------------- 1 | odd 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.2.l: -------------------------------------------------------------------------------- 1 | odd 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.3.css: -------------------------------------------------------------------------------- 1 | even 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.3.l: -------------------------------------------------------------------------------- 1 | even 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.4.css: -------------------------------------------------------------------------------- 1 | n 2 | -------------------------------------------------------------------------------- /test/data/test_shash/shash.1.l: -------------------------------------------------------------------------------- 1 | #id 2 | -------------------------------------------------------------------------------- /test/data/test_unary/unary.0.css: -------------------------------------------------------------------------------- 1 | - 2 | -------------------------------------------------------------------------------- /test/data/test_unary/unary.0.l: -------------------------------------------------------------------------------- 1 | - 2 | -------------------------------------------------------------------------------- /test/data/test_unary/unary.1.css: -------------------------------------------------------------------------------- 1 | + 2 | -------------------------------------------------------------------------------- /test/data/test_unary/unary.1.l: -------------------------------------------------------------------------------- 1 | + 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.0.css: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.0.l: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.1.l: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /test/data/test_vhash/vhash.1.l: -------------------------------------------------------------------------------- 1 | #id 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.0.l: -------------------------------------------------------------------------------- 1 | [a=b] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.2.css: -------------------------------------------------------------------------------- 1 | [b] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.2.l: -------------------------------------------------------------------------------- 1 | [b] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.0.css: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.1.css: -------------------------------------------------------------------------------- 1 | {;} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.2.css: -------------------------------------------------------------------------------- 1 | {p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.2.l: -------------------------------------------------------------------------------- 1 | {p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.3.css: -------------------------------------------------------------------------------- 1 | {p:v;} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.3.l: -------------------------------------------------------------------------------- 1 | {p:v;} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.0.css: -------------------------------------------------------------------------------- 1 | { } 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.0.l: -------------------------------------------------------------------------------- 1 | { } 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.0.css: -------------------------------------------------------------------------------- 1 | () 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.0.l: -------------------------------------------------------------------------------- 1 | () 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.1.css: -------------------------------------------------------------------------------- 1 | (1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.1.l: -------------------------------------------------------------------------------- 1 | (1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.2.css: -------------------------------------------------------------------------------- 1 | (x) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.2.l: -------------------------------------------------------------------------------- 1 | (x) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.3.l: -------------------------------------------------------------------------------- 1 | (x+1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.4.css: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.4.l: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.5.css: -------------------------------------------------------------------------------- 1 | [1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.5.l: -------------------------------------------------------------------------------- 1 | [1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.6.css: -------------------------------------------------------------------------------- 1 | [x] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.6.l: -------------------------------------------------------------------------------- 1 | [x] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.7.l: -------------------------------------------------------------------------------- 1 | [x+1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.0.cl: -------------------------------------------------------------------------------- 1 | () 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.1.cl: -------------------------------------------------------------------------------- 1 | (1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.2.cl: -------------------------------------------------------------------------------- 1 | (x) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.4.cl: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.5.cl: -------------------------------------------------------------------------------- 1 | [1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.6.cl: -------------------------------------------------------------------------------- 1 | [x] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.0.cl: -------------------------------------------------------------------------------- 1 | () 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.0.l: -------------------------------------------------------------------------------- 1 | ( ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.1.cl: -------------------------------------------------------------------------------- 1 | (1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.2.cl: -------------------------------------------------------------------------------- 1 | (x) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.4.cl: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.4.l: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.5.cl: -------------------------------------------------------------------------------- 1 | [1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.6.cl: -------------------------------------------------------------------------------- 1 | [x] 2 | -------------------------------------------------------------------------------- /test/data/test_clazz/clazz.0.css: -------------------------------------------------------------------------------- 1 | .abc 2 | -------------------------------------------------------------------------------- /test/data/test_clazz/clazz.0.l: -------------------------------------------------------------------------------- 1 | .abc 2 | -------------------------------------------------------------------------------- /test/data/test_delim/delim.0.p: -------------------------------------------------------------------------------- 1 | ['delim'] -------------------------------------------------------------------------------- /test/data/test_ident/ident.2.css: -------------------------------------------------------------------------------- 1 | -x 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.3.l: -------------------------------------------------------------------------------- 1 | -x-test 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.4.css: -------------------------------------------------------------------------------- 1 | x\:y 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.4.l: -------------------------------------------------------------------------------- 1 | x\:y 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.4.p: -------------------------------------------------------------------------------- 1 | ['nth', 'n'] 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.0.css: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.0.l: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.1.cl: -------------------------------------------------------------------------------- 1 | .1 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.1.css: -------------------------------------------------------------------------------- 1 | .10 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.1.l: -------------------------------------------------------------------------------- 1 | .10 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.2.l: -------------------------------------------------------------------------------- 1 | 12.34 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.3.cl: -------------------------------------------------------------------------------- 1 | .1 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.3.css: -------------------------------------------------------------------------------- 1 | 0.1 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.3.l: -------------------------------------------------------------------------------- 1 | 0.1 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.4.cl: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.4.css: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.4.l: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.5.cl: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.5.css: -------------------------------------------------------------------------------- 1 | 0.0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.5.l: -------------------------------------------------------------------------------- 1 | 0.0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.6.cl: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.6.css: -------------------------------------------------------------------------------- 1 | .0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.6.l: -------------------------------------------------------------------------------- 1 | .0 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.7.cl: -------------------------------------------------------------------------------- 1 | 1.2 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.0.l: -------------------------------------------------------------------------------- 1 | / 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.1.l: -------------------------------------------------------------------------------- 1 | , 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.2.l: -------------------------------------------------------------------------------- 1 | : 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.3.l: -------------------------------------------------------------------------------- 1 | = 2 | -------------------------------------------------------------------------------- /test/data/test_shash/shash.0.css: -------------------------------------------------------------------------------- 1 | #100 2 | -------------------------------------------------------------------------------- /test/data/test_shash/shash.0.l: -------------------------------------------------------------------------------- 1 | #100 2 | -------------------------------------------------------------------------------- /test/data/test_shash/shash.1.css: -------------------------------------------------------------------------------- 1 | #id 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.0.l: -------------------------------------------------------------------------------- 1 | 'test' 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.1.l: -------------------------------------------------------------------------------- 1 | "test" 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.1.css: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.2.l: -------------------------------------------------------------------------------- 1 | test(x) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.4.css: -------------------------------------------------------------------------------- 1 | -100% 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.4.l: -------------------------------------------------------------------------------- 1 | -100% 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.1.cl: -------------------------------------------------------------------------------- 1 | red 2 | -------------------------------------------------------------------------------- /test/data/test_vhash/vhash.0.css: -------------------------------------------------------------------------------- 1 | #100 2 | -------------------------------------------------------------------------------- /test/data/test_vhash/vhash.0.l: -------------------------------------------------------------------------------- 1 | #100 2 | -------------------------------------------------------------------------------- /test/data/test_vhash/vhash.1.css: -------------------------------------------------------------------------------- 1 | #id 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.0.css: -------------------------------------------------------------------------------- 1 | @test; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.0.l: -------------------------------------------------------------------------------- 1 | @test; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.0.cl: -------------------------------------------------------------------------------- 1 | @test; 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.0.css: -------------------------------------------------------------------------------- 1 | [a=b] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.1.css: -------------------------------------------------------------------------------- 1 | [a='b'] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.1.l: -------------------------------------------------------------------------------- 1 | [a='b'] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.0.p: -------------------------------------------------------------------------------- 1 | ['block'] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.4.l: -------------------------------------------------------------------------------- 1 | {p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.0.l: -------------------------------------------------------------------------------- 1 | {/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.1.css: -------------------------------------------------------------------------------- 1 | { ; } 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.1.l: -------------------------------------------------------------------------------- 1 | { ; } 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.2.css: -------------------------------------------------------------------------------- 1 | { p:v } 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.2.l: -------------------------------------------------------------------------------- 1 | { p:v } 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.3.css: -------------------------------------------------------------------------------- 1 | (x+1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.7.css: -------------------------------------------------------------------------------- 1 | [x+1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.8.css: -------------------------------------------------------------------------------- 1 | (test:0) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.8.l: -------------------------------------------------------------------------------- 1 | (test:0) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.3.cl: -------------------------------------------------------------------------------- 1 | (x+1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.7.cl: -------------------------------------------------------------------------------- 1 | [x+1] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.0.css: -------------------------------------------------------------------------------- 1 | ( ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.1.css: -------------------------------------------------------------------------------- 1 | ( 1 ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.1.l: -------------------------------------------------------------------------------- 1 | ( 1 ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.2.css: -------------------------------------------------------------------------------- 1 | ( x ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.2.l: -------------------------------------------------------------------------------- 1 | ( x ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.3.cl: -------------------------------------------------------------------------------- 1 | (x+1) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.4.css: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.5.css: -------------------------------------------------------------------------------- 1 | [ 1 ] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.5.l: -------------------------------------------------------------------------------- 1 | [ 1 ] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.6.css: -------------------------------------------------------------------------------- 1 | [ x ] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.6.l: -------------------------------------------------------------------------------- 1 | [ x ] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.7.cl: -------------------------------------------------------------------------------- 1 | [x+1] 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.0.css: -------------------------------------------------------------------------------- 1 | + 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.0.l: -------------------------------------------------------------------------------- 1 | + 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.1.css: -------------------------------------------------------------------------------- 1 | > 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.1.l: -------------------------------------------------------------------------------- 1 | > 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.2.css: -------------------------------------------------------------------------------- 1 | ~ 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.2.l: -------------------------------------------------------------------------------- 1 | ~ 2 | -------------------------------------------------------------------------------- /test/data/test_comment/comment.0.l: -------------------------------------------------------------------------------- 1 | /*test*/ 2 | -------------------------------------------------------------------------------- /test/data/test_decldelim/decldelim.0.css: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /test/data/test_decldelim/decldelim.0.l: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.0.l: -------------------------------------------------------------------------------- 1 | 10px 2 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.1.l: -------------------------------------------------------------------------------- 1 | .10px 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.0.l: -------------------------------------------------------------------------------- 1 | test() 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.1.l: -------------------------------------------------------------------------------- 1 | test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.3.css: -------------------------------------------------------------------------------- 1 | -x-test 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.4.p: -------------------------------------------------------------------------------- 1 | ['ident', 'x\:y'] -------------------------------------------------------------------------------- /test/data/test_nth/nth.0.p: -------------------------------------------------------------------------------- 1 | ['nth', '10'] 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.1.p: -------------------------------------------------------------------------------- 1 | ['nth', '2n'] 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.2.p: -------------------------------------------------------------------------------- 1 | ['nth', 'odd'] 2 | -------------------------------------------------------------------------------- /test/data/test_nth/nth.3.p: -------------------------------------------------------------------------------- 1 | ['nth', 'even'] 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.2.css: -------------------------------------------------------------------------------- 1 | 12.34 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.7.css: -------------------------------------------------------------------------------- 1 | 1.200000 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.7.l: -------------------------------------------------------------------------------- 1 | 1.200000 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.0.css: -------------------------------------------------------------------------------- 1 | / 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.1.css: -------------------------------------------------------------------------------- 1 | , 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.2.css: -------------------------------------------------------------------------------- 1 | : 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.3.css: -------------------------------------------------------------------------------- 1 | = 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.0.l: -------------------------------------------------------------------------------- 1 | 10% 2 | -------------------------------------------------------------------------------- /test/data/test_property/property.0.css: -------------------------------------------------------------------------------- 1 | color 2 | -------------------------------------------------------------------------------- /test/data/test_property/property.0.l: -------------------------------------------------------------------------------- 1 | color 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoc/pseudoc.0.css: -------------------------------------------------------------------------------- 1 | :test 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoc/pseudoc.0.l: -------------------------------------------------------------------------------- 1 | :test 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoe/pseudoe.0.css: -------------------------------------------------------------------------------- 1 | ::test 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoe/pseudoe.0.l: -------------------------------------------------------------------------------- 1 | ::test 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.0.css: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.0.l: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.0.cl: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.0.cl: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_selector/selector.0.css: -------------------------------------------------------------------------------- 1 | a,b 2 | -------------------------------------------------------------------------------- /test/data/test_selector/selector.0.l: -------------------------------------------------------------------------------- 1 | a,b 2 | -------------------------------------------------------------------------------- /test/data/test_selector/selector.1.css: -------------------------------------------------------------------------------- 1 | a+b,c 2 | -------------------------------------------------------------------------------- /test/data/test_selector/selector.1.l: -------------------------------------------------------------------------------- 1 | a+b,c 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.0.css: -------------------------------------------------------------------------------- 1 | 'test' 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.1.css: -------------------------------------------------------------------------------- 1 | "test" 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.2.css: -------------------------------------------------------------------------------- 1 | 'te\'st' 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.2.l: -------------------------------------------------------------------------------- 1 | 'te\'st' 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.3.css: -------------------------------------------------------------------------------- 1 | "te\"st" 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.3.l: -------------------------------------------------------------------------------- 1 | "te\"st" 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.2.css: -------------------------------------------------------------------------------- 1 | test(x) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.3.l: -------------------------------------------------------------------------------- 1 | 10 !important 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.0.cl: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.0.l: -------------------------------------------------------------------------------- 1 | 0px 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.1.cl: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.2.cl: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.0.cl: -------------------------------------------------------------------------------- 1 | #0a0a0a 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.0.cl: -------------------------------------------------------------------------------- 1 | #fff 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.0.l: -------------------------------------------------------------------------------- 1 | #ffffff 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.1.cl: -------------------------------------------------------------------------------- 1 | red 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.1.css: -------------------------------------------------------------------------------- 1 | #f00 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.1.l: -------------------------------------------------------------------------------- 1 | #f00 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.2.l: -------------------------------------------------------------------------------- 1 | #F0f0C0 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.3.cl: -------------------------------------------------------------------------------- 1 | #abc 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.3.l: -------------------------------------------------------------------------------- 1 | #AaBbCc 2 | -------------------------------------------------------------------------------- /test/data/test_atkeyword/atkeyword.0.css: -------------------------------------------------------------------------------- 1 | @import 2 | -------------------------------------------------------------------------------- /test/data/test_atkeyword/atkeyword.0.l: -------------------------------------------------------------------------------- 1 | @import 2 | -------------------------------------------------------------------------------- /test/data/test_atkeyword/atkeyword.1.l: -------------------------------------------------------------------------------- 1 | @font-face 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.0.css: -------------------------------------------------------------------------------- 1 | @test{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.0.l: -------------------------------------------------------------------------------- 1 | @test{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.0.cl: -------------------------------------------------------------------------------- 1 | @test{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.0.cl: -------------------------------------------------------------------------------- 1 | @test{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.1.css: -------------------------------------------------------------------------------- 1 | @test x y; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.1.l: -------------------------------------------------------------------------------- 1 | @test x y; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.2.l: -------------------------------------------------------------------------------- 1 | @test "blah"; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.0.css: -------------------------------------------------------------------------------- 1 | @test ; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.0.l: -------------------------------------------------------------------------------- 1 | @test ; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.1.cl: -------------------------------------------------------------------------------- 1 | @test x y; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.1.l: -------------------------------------------------------------------------------- 1 | @test x y; 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.s.0.l: -------------------------------------------------------------------------------- 1 | [ a = b ] 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.0.css: -------------------------------------------------------------------------------- 1 | = 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.0.l: -------------------------------------------------------------------------------- 1 | = 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.1.css: -------------------------------------------------------------------------------- 1 | ~= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.1.l: -------------------------------------------------------------------------------- 1 | ~= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.2.css: -------------------------------------------------------------------------------- 1 | ^= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.2.l: -------------------------------------------------------------------------------- 1 | ^= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.3.css: -------------------------------------------------------------------------------- 1 | $= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.3.l: -------------------------------------------------------------------------------- 1 | $= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.4.css: -------------------------------------------------------------------------------- 1 | *= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.4.l: -------------------------------------------------------------------------------- 1 | *= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.5.css: -------------------------------------------------------------------------------- 1 | |= 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.5.l: -------------------------------------------------------------------------------- 1 | |= 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.4.css: -------------------------------------------------------------------------------- 1 | {p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.0.css: -------------------------------------------------------------------------------- 1 | {/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.3.css: -------------------------------------------------------------------------------- 1 | { p:v ; } 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.3.l: -------------------------------------------------------------------------------- 1 | { p:v ; } 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.0.css: -------------------------------------------------------------------------------- 1 | (/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.0.l: -------------------------------------------------------------------------------- 1 | (/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.4.css: -------------------------------------------------------------------------------- 1 | [/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.4.l: -------------------------------------------------------------------------------- 1 | [/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.3.l: -------------------------------------------------------------------------------- 1 | ( x + 1 ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.7.l: -------------------------------------------------------------------------------- 1 | [ x + 1 ] 2 | -------------------------------------------------------------------------------- /test/data/test_comment/comment.0.css: -------------------------------------------------------------------------------- 1 | /*test*/ 2 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.0.css: -------------------------------------------------------------------------------- 1 | 10px 2 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.1.css: -------------------------------------------------------------------------------- 1 | .10px 2 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.2.css: -------------------------------------------------------------------------------- 1 | 12.34px 2 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.2.l: -------------------------------------------------------------------------------- 1 | 12.34px 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.0.css: -------------------------------------------------------------------------------- 1 | test() 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.1.css: -------------------------------------------------------------------------------- 1 | test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.2.l: -------------------------------------------------------------------------------- 1 | test-test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.3.css: -------------------------------------------------------------------------------- 1 | test(x+y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.3.l: -------------------------------------------------------------------------------- 1 | test(x+y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.4.css: -------------------------------------------------------------------------------- 1 | test(x,y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.4.l: -------------------------------------------------------------------------------- 1 | test(x,y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.6.l: -------------------------------------------------------------------------------- 1 | test(.test) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.0.cl: -------------------------------------------------------------------------------- 1 | test() 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.1.cl: -------------------------------------------------------------------------------- 1 | test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.3.cl: -------------------------------------------------------------------------------- 1 | test(x+y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.4.cl: -------------------------------------------------------------------------------- 1 | test(x,y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.0.cl: -------------------------------------------------------------------------------- 1 | test() 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.0.css: -------------------------------------------------------------------------------- 1 | test( ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.0.l: -------------------------------------------------------------------------------- 1 | test( ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.1.cl: -------------------------------------------------------------------------------- 1 | test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.3.cl: -------------------------------------------------------------------------------- 1 | test(x+y) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.4.cl: -------------------------------------------------------------------------------- 1 | test(x,y) 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.0.p: -------------------------------------------------------------------------------- 1 | ['ident', 'x'] 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.1.p: -------------------------------------------------------------------------------- 1 | ['ident', '*'] 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.2.p: -------------------------------------------------------------------------------- 1 | ['ident', '-x'] 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.0.l: -------------------------------------------------------------------------------- 1 | !important 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.0.p: -------------------------------------------------------------------------------- 1 | ['number', '10'] 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.0.css: -------------------------------------------------------------------------------- 1 | 10% 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.1.css: -------------------------------------------------------------------------------- 1 | .10% 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.1.l: -------------------------------------------------------------------------------- 1 | .10% 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.2.css: -------------------------------------------------------------------------------- 1 | 12.34% 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.2.l: -------------------------------------------------------------------------------- 1 | 12.34% 2 | -------------------------------------------------------------------------------- /test/data/test_property/property.1.css: -------------------------------------------------------------------------------- 1 | -my-color 2 | -------------------------------------------------------------------------------- /test/data/test_property/property.1.l: -------------------------------------------------------------------------------- 1 | -my-color 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoc/pseudoc.1.css: -------------------------------------------------------------------------------- 1 | :test-test 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoc/pseudoc.1.l: -------------------------------------------------------------------------------- 1 | :test-test 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoe/pseudoe.1.css: -------------------------------------------------------------------------------- 1 | ::test-test 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoe/pseudoe.1.l: -------------------------------------------------------------------------------- 1 | ::test-test 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.1.l: -------------------------------------------------------------------------------- 1 | s{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.2.css: -------------------------------------------------------------------------------- 1 | s0,s1{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.2.l: -------------------------------------------------------------------------------- 1 | s0,s1{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.2.cl: -------------------------------------------------------------------------------- 1 | s0,s1{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.2.cl: -------------------------------------------------------------------------------- 1 | s0,s1{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_shash/shash.0.p: -------------------------------------------------------------------------------- 1 | ['shash', '100'] 2 | -------------------------------------------------------------------------------- /test/data/test_shash/shash.1.p: -------------------------------------------------------------------------------- 1 | ['shash', 'id'] 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.0.css: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.0.l: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.2.css: -------------------------------------------------------------------------------- 1 | @test; 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.2.l: -------------------------------------------------------------------------------- 1 | @test; 2 | -------------------------------------------------------------------------------- /test/data/test_unary/unary.0.p: -------------------------------------------------------------------------------- 1 | ['unary', '-'] 2 | -------------------------------------------------------------------------------- /test/data/test_unary/unary.1.p: -------------------------------------------------------------------------------- 1 | ['unary', '+'] 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.0.l: -------------------------------------------------------------------------------- 1 | url('http://test.com') 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.1.css: -------------------------------------------------------------------------------- 1 | url(http://test.com) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.1.l: -------------------------------------------------------------------------------- 1 | url(http://test.com) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.3.css: -------------------------------------------------------------------------------- 1 | 10 !important 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.0.css: -------------------------------------------------------------------------------- 1 | 0px 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.1.css: -------------------------------------------------------------------------------- 1 | .0px 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.1.l: -------------------------------------------------------------------------------- 1 | .0px 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.1.css: -------------------------------------------------------------------------------- 1 | rgb(255,0,0) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.1.l: -------------------------------------------------------------------------------- 1 | rgb(255,0,0) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.2.cl: -------------------------------------------------------------------------------- 1 | rgb(10,0,10%) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.0.css: -------------------------------------------------------------------------------- 1 | #ffffff 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.2.cl: -------------------------------------------------------------------------------- 1 | #F0f0C0 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.2.css: -------------------------------------------------------------------------------- 1 | #F0f0C0 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.vhash.3.css: -------------------------------------------------------------------------------- 1 | #AaBbCc 2 | -------------------------------------------------------------------------------- /test/data/test_vhash/vhash.0.p: -------------------------------------------------------------------------------- 1 | ['vhash', '100'] 2 | -------------------------------------------------------------------------------- /test/data/test_vhash/vhash.1.p: -------------------------------------------------------------------------------- 1 | ['vhash', 'id'] 2 | -------------------------------------------------------------------------------- /test/data/test_atkeyword/atkeyword.1.css: -------------------------------------------------------------------------------- 1 | @font-face 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.1.css: -------------------------------------------------------------------------------- 1 | @test x y {p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.1.l: -------------------------------------------------------------------------------- 1 | @test x y {p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.1.cl: -------------------------------------------------------------------------------- 1 | @test x y{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.0.css: -------------------------------------------------------------------------------- 1 | @media {s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.0.l: -------------------------------------------------------------------------------- 1 | @media {s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.1.l: -------------------------------------------------------------------------------- 1 | @media x y {s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.0.cl: -------------------------------------------------------------------------------- 1 | @media{s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.0.cl: -------------------------------------------------------------------------------- 1 | @media{s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.2.css: -------------------------------------------------------------------------------- 1 | @test "blah"; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.0.css: -------------------------------------------------------------------------------- 1 | @test/*test*/; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.0.l: -------------------------------------------------------------------------------- 1 | @test/*test*/; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.1.css: -------------------------------------------------------------------------------- 1 | @test x y; 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.s.0.css: -------------------------------------------------------------------------------- 1 | [ a = b ] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.s.1.css: -------------------------------------------------------------------------------- 1 | [ a = 'b' ] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.s.1.l: -------------------------------------------------------------------------------- 1 | [ a = 'b' ] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.1.css: -------------------------------------------------------------------------------- 1 | {/*test*/;/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.1.l: -------------------------------------------------------------------------------- 1 | {/*test*/;/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.2.l: -------------------------------------------------------------------------------- 1 | {/*test*/p:v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.4.l: -------------------------------------------------------------------------------- 1 | { p0:v0 ; p1:v1 } 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.0.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')'] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.4.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']'] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.1.l: -------------------------------------------------------------------------------- 1 | (/*test*/1/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.2.l: -------------------------------------------------------------------------------- 1 | (/*test*/x/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.5.l: -------------------------------------------------------------------------------- 1 | [/*test*/1/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.6.l: -------------------------------------------------------------------------------- 1 | [/*test*/x/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.3.css: -------------------------------------------------------------------------------- 1 | ( x + 1 ) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.7.css: -------------------------------------------------------------------------------- 1 | [ x + 1 ] 2 | -------------------------------------------------------------------------------- /test/data/test_comment/comment.0.p: -------------------------------------------------------------------------------- 1 | ['comment', 'test'] 2 | -------------------------------------------------------------------------------- /test/data/test_decldelim/decldelim.0.p: -------------------------------------------------------------------------------- 1 | ['decldelim'] 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.2.css: -------------------------------------------------------------------------------- 1 | test-test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.6.css: -------------------------------------------------------------------------------- 1 | test(.test) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.0.l: -------------------------------------------------------------------------------- 1 | test(/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.2.cl: -------------------------------------------------------------------------------- 1 | test-test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.1.css: -------------------------------------------------------------------------------- 1 | test( n ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.1.l: -------------------------------------------------------------------------------- 1 | test( n ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.2.cl: -------------------------------------------------------------------------------- 1 | test-test(n) 2 | -------------------------------------------------------------------------------- /test/data/test_ident/ident.3.p: -------------------------------------------------------------------------------- 1 | ['ident', '-x-test'] 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.0.css: -------------------------------------------------------------------------------- 1 | !important 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.0.p: -------------------------------------------------------------------------------- 1 | ['important'] 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.c.0.cl: -------------------------------------------------------------------------------- 1 | !important 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.s.0.cl: -------------------------------------------------------------------------------- 1 | !important 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.s.0.l: -------------------------------------------------------------------------------- 1 | ! important 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.1.p: -------------------------------------------------------------------------------- 1 | ['number', '.10'] 2 | -------------------------------------------------------------------------------- /test/data/test_number/number.2.p: -------------------------------------------------------------------------------- 1 | ['number', '12.34'] 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.0.p: -------------------------------------------------------------------------------- 1 | ['operator', '/'] 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.1.p: -------------------------------------------------------------------------------- 1 | ['operator', ','] 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.2.p: -------------------------------------------------------------------------------- 1 | ['operator', ':'] 2 | -------------------------------------------------------------------------------- /test/data/test_operator/operator.3.p: -------------------------------------------------------------------------------- 1 | ['operator', '='] 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.1.css: -------------------------------------------------------------------------------- 1 | s{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.3.l: -------------------------------------------------------------------------------- 1 | s0,s1{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.1.cl: -------------------------------------------------------------------------------- 1 | s{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.0.l: -------------------------------------------------------------------------------- 1 | s { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.1.cl: -------------------------------------------------------------------------------- 1 | s{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.0.l: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.1.l: -------------------------------------------------------------------------------- 1 | .test 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.10.l: -------------------------------------------------------------------------------- 1 | a|b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.2.l: -------------------------------------------------------------------------------- 1 | #test 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.3.l: -------------------------------------------------------------------------------- 1 | [a=b] 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.5.css: -------------------------------------------------------------------------------- 1 | a b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.5.l: -------------------------------------------------------------------------------- 1 | a b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.6.css: -------------------------------------------------------------------------------- 1 | a+b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.6.l: -------------------------------------------------------------------------------- 1 | a+b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.7.css: -------------------------------------------------------------------------------- 1 | a>b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.7.l: -------------------------------------------------------------------------------- 1 | a>b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.8.css: -------------------------------------------------------------------------------- 1 | a~b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.8.l: -------------------------------------------------------------------------------- 1 | a~b 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.0.p: -------------------------------------------------------------------------------- 1 | ['string', ''test''] 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.1.p: -------------------------------------------------------------------------------- 1 | ['string', '"test"'] 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.4.l: -------------------------------------------------------------------------------- 1 | s{p:v}@test; 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.c.0.cl: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.0.cl: -------------------------------------------------------------------------------- 1 | s{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.0.css: -------------------------------------------------------------------------------- 1 | url('http://test.com') 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.0.cl: -------------------------------------------------------------------------------- 1 | url('http://test.com') 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.0.cl: -------------------------------------------------------------------------------- 1 | url('http://test.com') 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.1.cl: -------------------------------------------------------------------------------- 1 | url(http://test.com) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.1.l: -------------------------------------------------------------------------------- 1 | url( http://test.com ) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.2.css: -------------------------------------------------------------------------------- 1 | 0000.000px 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.dimension.2.l: -------------------------------------------------------------------------------- 1 | 0000.000px 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.0.css: -------------------------------------------------------------------------------- 1 | rgb(10, 10, 10) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.0.l: -------------------------------------------------------------------------------- 1 | rgb(10, 10, 10) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.2.l: -------------------------------------------------------------------------------- 1 | rgb(10.0,00.00,10%) 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.2.l: -------------------------------------------------------------------------------- 1 | @test x, y x(1+2) {p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.0.css: -------------------------------------------------------------------------------- 1 | @test { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.0.l: -------------------------------------------------------------------------------- 1 | @test { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.2.cl: -------------------------------------------------------------------------------- 1 | @test x,y x(1+2){p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.1.css: -------------------------------------------------------------------------------- 1 | @media x y {s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.1.cl: -------------------------------------------------------------------------------- 1 | @media x y{s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.2.css: -------------------------------------------------------------------------------- 1 | {/*test*/p:v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.4.css: -------------------------------------------------------------------------------- 1 | { p0:v0 ; p1:v1 } 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.1.css: -------------------------------------------------------------------------------- 1 | (/*test*/1/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.2.css: -------------------------------------------------------------------------------- 1 | (/*test*/x/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.5.css: -------------------------------------------------------------------------------- 1 | [/*test*/1/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.6.css: -------------------------------------------------------------------------------- 1 | [/*test*/x/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.0.css: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.0.l: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.0.css: -------------------------------------------------------------------------------- 1 | test(/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.2.css: -------------------------------------------------------------------------------- 1 | test-test( n ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.2.l: -------------------------------------------------------------------------------- 1 | test-test( n ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.3.css: -------------------------------------------------------------------------------- 1 | test( x + y ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.3.l: -------------------------------------------------------------------------------- 1 | test( x + y ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.4.css: -------------------------------------------------------------------------------- 1 | test( x , y ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.4.l: -------------------------------------------------------------------------------- 1 | test( x , y ) 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.c.0.l: -------------------------------------------------------------------------------- 1 | !/*test*/important 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.s.0.css: -------------------------------------------------------------------------------- 1 | ! important 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.0.l: -------------------------------------------------------------------------------- 1 | :nth-child(2n+1) 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.3.css: -------------------------------------------------------------------------------- 1 | s0,s1{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.3.cl: -------------------------------------------------------------------------------- 1 | s0,s1{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.0.css: -------------------------------------------------------------------------------- 1 | s { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.3.cl: -------------------------------------------------------------------------------- 1 | s0,s1{p0:v0;p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/value.color.ident.0.cl: -------------------------------------------------------------------------------- 1 | s{p:#ff0} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/value.color.ident.0.css: -------------------------------------------------------------------------------- 1 | s{p:yellow} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/value.color.ident.0.l: -------------------------------------------------------------------------------- 1 | s{p:yellow} 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.0.css: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.1.css: -------------------------------------------------------------------------------- 1 | .test 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.10.css: -------------------------------------------------------------------------------- 1 | a|b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.2.css: -------------------------------------------------------------------------------- 1 | #test 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.3.css: -------------------------------------------------------------------------------- 1 | [a=b] 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.0.cl: -------------------------------------------------------------------------------- 1 | a b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.0.css: -------------------------------------------------------------------------------- 1 | a b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.0.l: -------------------------------------------------------------------------------- 1 | a b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.1.cl: -------------------------------------------------------------------------------- 1 | a+b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.1.l: -------------------------------------------------------------------------------- 1 | a + b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.2.cl: -------------------------------------------------------------------------------- 1 | a>b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.2.l: -------------------------------------------------------------------------------- 1 | a > b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.3.cl: -------------------------------------------------------------------------------- 1 | a~b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.3.l: -------------------------------------------------------------------------------- 1 | a ~ b 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.2.p: -------------------------------------------------------------------------------- 1 | ['string', ''te\'st''] 2 | -------------------------------------------------------------------------------- /test/data/test_string/string.3.p: -------------------------------------------------------------------------------- 1 | ['string', '"te\"st"'] 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.1.l: -------------------------------------------------------------------------------- 1 | s0{p0:v0}s1{p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.3.css: -------------------------------------------------------------------------------- 1 | @test0;@test1; 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.3.l: -------------------------------------------------------------------------------- 1 | @test0;@test1; 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.4.css: -------------------------------------------------------------------------------- 1 | s{p:v}@test; 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.2.cl: -------------------------------------------------------------------------------- 1 | @test0;@test1; 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.3.cl: -------------------------------------------------------------------------------- 1 | s{p:v}@test; 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.1.cl: -------------------------------------------------------------------------------- 1 | url(http://test.com/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.0.css: -------------------------------------------------------------------------------- 1 | url( 'http://test.com' ) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.0.l: -------------------------------------------------------------------------------- 1 | url( 'http://test.com' ) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.1.css: -------------------------------------------------------------------------------- 1 | url( http://test.com ) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.rgb.2.css: -------------------------------------------------------------------------------- 1 | rgb(10.0,00.00,10%) 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.2.css: -------------------------------------------------------------------------------- 1 | @test x, y x(1+2) {p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.1.l: -------------------------------------------------------------------------------- 1 | @test x y { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.2.css: -------------------------------------------------------------------------------- 1 | @media x, y f(1+2) {s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.2.l: -------------------------------------------------------------------------------- 1 | @media x, y f(1+2) {s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.2.cl: -------------------------------------------------------------------------------- 1 | @media x,y f(1+2){s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.1.css: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/y; 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.1.l: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/y; 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.2.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['ident', 'b']] -------------------------------------------------------------------------------- /test/data/test_block/block.1.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['decldelim']] 3 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.3.l: -------------------------------------------------------------------------------- 1 | {/*test*/p:v/*test*/;/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.0.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['s', ' ']] 3 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.0.p: -------------------------------------------------------------------------------- 1 | ['combinator', '+'] 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.1.p: -------------------------------------------------------------------------------- 1 | ['combinator', '>'] 2 | -------------------------------------------------------------------------------- /test/data/test_combinator/combinator.2.p: -------------------------------------------------------------------------------- 1 | ['combinator', '~'] 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.1.css: -------------------------------------------------------------------------------- 1 | -my-property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.1.l: -------------------------------------------------------------------------------- 1 | -my-property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.0.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.1.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.2.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.3.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.0.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.0.css: -------------------------------------------------------------------------------- 1 | property :value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.0.l: -------------------------------------------------------------------------------- 1 | property :value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.1.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.1.css: -------------------------------------------------------------------------------- 1 | property: value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.1.l: -------------------------------------------------------------------------------- 1 | property: value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.2.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.2.css: -------------------------------------------------------------------------------- 1 | property : value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.2.l: -------------------------------------------------------------------------------- 1 | property : value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.3.cl: -------------------------------------------------------------------------------- 1 | property:value 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.1.css: -------------------------------------------------------------------------------- 1 | test(/*test*/n/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.1.l: -------------------------------------------------------------------------------- 1 | test(/*test*/n/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.c.0.css: -------------------------------------------------------------------------------- 1 | !/*test*/important 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.0.css: -------------------------------------------------------------------------------- 1 | :nth-child(2n+1) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.0.cl: -------------------------------------------------------------------------------- 1 | :nth-child(2n+1) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.0.cl: -------------------------------------------------------------------------------- 1 | :nth-child(2n+1) 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.2.css: -------------------------------------------------------------------------------- 1 | s0 , s1 { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.2.l: -------------------------------------------------------------------------------- 1 | s0 , s1 { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/value.color.ident.1.cl: -------------------------------------------------------------------------------- 1 | yellow{p:#ff0} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/value.color.ident.1.css: -------------------------------------------------------------------------------- 1 | yellow{p:yellow} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/value.color.ident.1.l: -------------------------------------------------------------------------------- 1 | yellow{p:yellow} 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.11.css: -------------------------------------------------------------------------------- 1 | *|*:not(*) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.11.l: -------------------------------------------------------------------------------- 1 | *|*:not(*) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.12.css: -------------------------------------------------------------------------------- 1 | x:not([ABC]) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.12.l: -------------------------------------------------------------------------------- 1 | x:not([ABC]) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.4.css: -------------------------------------------------------------------------------- 1 | [a=b][c='d'] 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.4.l: -------------------------------------------------------------------------------- 1 | [a=b][c='d'] 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.0.cl: -------------------------------------------------------------------------------- 1 | a/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.0.css: -------------------------------------------------------------------------------- 1 | a/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.0.l: -------------------------------------------------------------------------------- 1 | a/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.1.css: -------------------------------------------------------------------------------- 1 | a + b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.2.css: -------------------------------------------------------------------------------- 1 | a > b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.3.css: -------------------------------------------------------------------------------- 1 | a ~ b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.4.cl: -------------------------------------------------------------------------------- 1 | a b+c>d~e 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.1.css: -------------------------------------------------------------------------------- 1 | s0{p0:v0}s1{p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.1.cl: -------------------------------------------------------------------------------- 1 | s0{p0:v0}s1{p1:v1} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.2.css: -------------------------------------------------------------------------------- 1 | @test0; 2 | @test1; 3 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.2.l: -------------------------------------------------------------------------------- 1 | @test0; 2 | @test1; 3 | -------------------------------------------------------------------------------- /test/data/test_value/value.0.p: -------------------------------------------------------------------------------- 1 | ['value', 2 | ['ident', 'x']] 3 | -------------------------------------------------------------------------------- /sample/injectrule/test.css: -------------------------------------------------------------------------------- 1 | sample { border: 0 } 2 | 3 | @sample; 4 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.1.cl: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/y{p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.1.css: -------------------------------------------------------------------------------- 1 | @test x y { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.0.css: -------------------------------------------------------------------------------- 1 | @media { s { p : v } } 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.0.l: -------------------------------------------------------------------------------- 1 | @media { s { p : v } } 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.0.p: -------------------------------------------------------------------------------- 1 | ['attrselector', '='] 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.1.p: -------------------------------------------------------------------------------- 1 | ['attrselector', '~='] 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.2.p: -------------------------------------------------------------------------------- 1 | ['attrselector', '^='] 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.3.p: -------------------------------------------------------------------------------- 1 | ['attrselector', '$='] 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.4.p: -------------------------------------------------------------------------------- 1 | ['attrselector', '*='] 2 | -------------------------------------------------------------------------------- /test/data/test_attrselector/attrselector.5.p: -------------------------------------------------------------------------------- 1 | ['attrselector', '|='] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.3.css: -------------------------------------------------------------------------------- 1 | {/*test*/p:v/*test*/;/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_clazz/clazz.0.p: -------------------------------------------------------------------------------- 1 | ['clazz', 2 | ['ident', 'abc']] 3 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.0.css: -------------------------------------------------------------------------------- 1 | property/*test*/:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.0.l: -------------------------------------------------------------------------------- 1 | property/*test*/:value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.1.css: -------------------------------------------------------------------------------- 1 | property:/*test*/value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.1.l: -------------------------------------------------------------------------------- 1 | property:/*test*/value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.3.css: -------------------------------------------------------------------------------- 1 | property : value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.3.l: -------------------------------------------------------------------------------- 1 | property : value 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.0.l: -------------------------------------------------------------------------------- 1 | expression() 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.5.css: -------------------------------------------------------------------------------- 1 | test(10px,'test' test(x),89%) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.5.l: -------------------------------------------------------------------------------- 1 | test(10px,'test' test(x),89%) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.2.css: -------------------------------------------------------------------------------- 1 | test-test(/*test*/n/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.2.l: -------------------------------------------------------------------------------- 1 | test-test(/*test*/n/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.5.cl: -------------------------------------------------------------------------------- 1 | test(10px,'test' test(x),89%) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.1.css: -------------------------------------------------------------------------------- 1 | :nth-last-child(+3n-2) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.1.l: -------------------------------------------------------------------------------- 1 | :nth-last-child(+3n-2) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.1.cl: -------------------------------------------------------------------------------- 1 | :nth-last-child(+3n-2) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.0.l: -------------------------------------------------------------------------------- 1 | :nth-child( 2n + 1 ) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.1.cl: -------------------------------------------------------------------------------- 1 | :nth-last-child(+3n-2) 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.1.l: -------------------------------------------------------------------------------- 1 | s { p0 : v0 ; p1 : v1 } 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.9.css: -------------------------------------------------------------------------------- 1 | :nth-child(+3n-2) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.9.l: -------------------------------------------------------------------------------- 1 | :nth-child(+3n-2) 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.0.css: -------------------------------------------------------------------------------- 1 | s { 2 | p: v 3 | } 4 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.0.l: -------------------------------------------------------------------------------- 1 | s { 2 | p: v 3 | } 4 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.1.p: -------------------------------------------------------------------------------- 1 | ['uri', 2 | ['raw', 'http://test.com']] 3 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.0.css: -------------------------------------------------------------------------------- 1 | url(/*test*/'http://test.com'/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.0.l: -------------------------------------------------------------------------------- 1 | url(/*test*/'http://test.com'/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.1.css: -------------------------------------------------------------------------------- 1 | url(/*test*/http://test.com/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.1.l: -------------------------------------------------------------------------------- 1 | url(/*test*/http://test.com/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_value/value.1.p: -------------------------------------------------------------------------------- 1 | ['value', 2 | ['number', '10']] 3 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.2.cl: -------------------------------------------------------------------------------- 1 | @test/*test*/x,y/*test*/x(1+2){p:v} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.1.cl: -------------------------------------------------------------------------------- 1 | @media/*test*/x/*test*/y{s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.1.l: -------------------------------------------------------------------------------- 1 | @media x y { s { p : v } } 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.c.0.css: -------------------------------------------------------------------------------- 1 | [/*test*/a/*test*/=/*test*/b/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.c.0.l: -------------------------------------------------------------------------------- 1 | [/*test*/a/*test*/=/*test*/b/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.c.1.l: -------------------------------------------------------------------------------- 1 | [/*test*/a/*test*/=/*test*/'b'/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.0.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['comment', 'test']] 3 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.3.css: -------------------------------------------------------------------------------- 1 | (/*test*/x/*test*/+/*test*/1/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.3.l: -------------------------------------------------------------------------------- 1 | (/*test*/x/*test*/+/*test*/1/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.7.css: -------------------------------------------------------------------------------- 1 | [/*test*/x/*test*/+/*test*/1/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.7.l: -------------------------------------------------------------------------------- 1 | [/*test*/x/*test*/+/*test*/1/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.0.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.4.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.0.css: -------------------------------------------------------------------------------- 1 | expression() 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.1.css: -------------------------------------------------------------------------------- 1 | expression(()) 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.1.l: -------------------------------------------------------------------------------- 1 | expression(()) 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.3.l: -------------------------------------------------------------------------------- 1 | expression(/*)*/) 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.4.css: -------------------------------------------------------------------------------- 1 | expression(")") 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.4.l: -------------------------------------------------------------------------------- 1 | expression(")") 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.5.css: -------------------------------------------------------------------------------- 1 | expression(')') 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.5.l: -------------------------------------------------------------------------------- 1 | expression(')') 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.6.l: -------------------------------------------------------------------------------- 1 | expression(()()) 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.s.0.p: -------------------------------------------------------------------------------- 1 | ['important', 2 | ['s', ' ']] 3 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.0.css: -------------------------------------------------------------------------------- 1 | :nth-child( 2n + 1 ) 2 | -------------------------------------------------------------------------------- /test/data/test_pseudoc/pseudoc.0.p: -------------------------------------------------------------------------------- 1 | ['pseudoc', 2 | ['ident', 'test']] 3 | -------------------------------------------------------------------------------- /test/data/test_pseudoe/pseudoe.0.p: -------------------------------------------------------------------------------- 1 | ['pseudoe', 2 | ['ident', 'test']] 3 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.1.css: -------------------------------------------------------------------------------- 1 | s { p0 : v0 ; p1 : v1 } 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.1.css: -------------------------------------------------------------------------------- 1 | a/*test*/+/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.1.l: -------------------------------------------------------------------------------- 1 | a/*test*/+/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.2.css: -------------------------------------------------------------------------------- 1 | a/*test*/>/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.2.l: -------------------------------------------------------------------------------- 1 | a/*test*/>/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.3.css: -------------------------------------------------------------------------------- 1 | a/*test*/~/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.3.l: -------------------------------------------------------------------------------- 1 | a/*test*/~/*test*/b 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.4.l: -------------------------------------------------------------------------------- 1 | a b + c > d ~ e 2 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.0.p: -------------------------------------------------------------------------------- 1 | ['uri', 2 | ['string', ''http://test.com'']] 3 | -------------------------------------------------------------------------------- /test/data/test_atkeyword/atkeyword.0.p: -------------------------------------------------------------------------------- 1 | ['atkeyword', 2 | ['ident', 'import']] -------------------------------------------------------------------------------- /test/data/test_atkeyword/atkeyword.1.p: -------------------------------------------------------------------------------- 1 | ['atkeyword', 2 | ['ident', 'font-face']] -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.2.cl: -------------------------------------------------------------------------------- 1 | @media/*test*/x,y/*test*/f(1+2){s{p:v}} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.1.css: -------------------------------------------------------------------------------- 1 | @media x y { s { p : v } } 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.c.1.css: -------------------------------------------------------------------------------- 1 | [/*test*/a/*test*/=/*test*/'b'/*test*/] 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.4.l: -------------------------------------------------------------------------------- 1 | {/*test*/p0:v0/*test*/;/*test*/p1:v1/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.1.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['number', '1']] 3 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.2.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['ident', 'x']] 3 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.5.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['number', '1']] 3 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.6.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['ident', 'x']] 3 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.0.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.4.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.2.css: -------------------------------------------------------------------------------- 1 | property/*test*/:/*test*/value 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.2.l: -------------------------------------------------------------------------------- 1 | property/*test*/:/*test*/value 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.3.css: -------------------------------------------------------------------------------- 1 | expression(/*)*/) 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.6.css: -------------------------------------------------------------------------------- 1 | expression(()()) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.5.cl: -------------------------------------------------------------------------------- 1 | test(10px,'test'/*test*/test(x),89%) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.1.css: -------------------------------------------------------------------------------- 1 | :nth-last-child( + 3n - 2 ) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.1.l: -------------------------------------------------------------------------------- 1 | :nth-last-child( + 3n - 2 ) 2 | -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.0.p: -------------------------------------------------------------------------------- 1 | ['percentage', 2 | ['number', '10']] -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.1.p: -------------------------------------------------------------------------------- 1 | ['percentage', 2 | ['number', '.10']] -------------------------------------------------------------------------------- /test/data/test_percentage/percentage.2.p: -------------------------------------------------------------------------------- 1 | ['percentage', 2 | ['number', '12.34']] -------------------------------------------------------------------------------- /test/data/test_property/property.0.p: -------------------------------------------------------------------------------- 1 | ['property', 2 | ['ident', 'color']] 3 | -------------------------------------------------------------------------------- /test/data/test_pseudoc/pseudoc.1.p: -------------------------------------------------------------------------------- 1 | ['pseudoc', 2 | ['ident', 'test-test']] 3 | -------------------------------------------------------------------------------- /test/data/test_pseudoe/pseudoe.1.p: -------------------------------------------------------------------------------- 1 | ['pseudoe', 2 | ['ident', 'test-test']] 3 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.3.css: -------------------------------------------------------------------------------- 1 | s0 , s1 { p0 : v0 ; p1 : v1 } 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.3.l: -------------------------------------------------------------------------------- 1 | s0 , s1 { p0 : v0 ; p1 : v1 } 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.4.css: -------------------------------------------------------------------------------- 1 | a b + c > d ~ e 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.4.css: -------------------------------------------------------------------------------- 1 | a b + c > d ~ e 2 | -------------------------------------------------------------------------------- /src/cssptt.pre.js: -------------------------------------------------------------------------------- 1 | var ometajs = require('ometajs'), 2 | OMeta = ometajs.OMeta; 3 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.2.css: -------------------------------------------------------------------------------- 1 | @test x , y x( 1 + 2 ) { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.2.l: -------------------------------------------------------------------------------- 1 | @test x , y x( 1 + 2 ) { p : v } 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.4.css: -------------------------------------------------------------------------------- 1 | {/*test*/p0:v0/*test*/;/*test*/p1:v1/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.3.l: -------------------------------------------------------------------------------- 1 | property /*test*/ : /*test*/ value 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.0.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', ''] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.2.css: -------------------------------------------------------------------------------- 1 | expression(expression()) 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.2.l: -------------------------------------------------------------------------------- 1 | expression(expression()) 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.7.l: -------------------------------------------------------------------------------- 1 | expression( 2 | // ) 3 | ) 4 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.3.css: -------------------------------------------------------------------------------- 1 | test(/*test*/x/*test*/+/*test*/y/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.3.l: -------------------------------------------------------------------------------- 1 | test(/*test*/x/*test*/+/*test*/y/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.4.css: -------------------------------------------------------------------------------- 1 | test(/*test*/x/*test*/,/*test*/y/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.4.l: -------------------------------------------------------------------------------- 1 | test(/*test*/x/*test*/,/*test*/y/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_important/important.c.0.p: -------------------------------------------------------------------------------- 1 | ['important', 2 | ['comment', 'test']] 3 | -------------------------------------------------------------------------------- /test/data/test_property/property.1.p: -------------------------------------------------------------------------------- 1 | ['property', 2 | ['ident', '-my-color']] 3 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.0.l: -------------------------------------------------------------------------------- 1 | s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.3.css: -------------------------------------------------------------------------------- 1 | s { 2 | p:v 3 | } 4 | 5 | @test; 6 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.3.l: -------------------------------------------------------------------------------- 1 | s { 2 | p:v 3 | } 4 | 5 | @test; 6 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.0.css: -------------------------------------------------------------------------------- 1 | @test/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.0.l: -------------------------------------------------------------------------------- 1 | @test/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.3.css: -------------------------------------------------------------------------------- 1 | property /*test*/ : /*test*/ value 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.1.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', '()'] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.3.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', '/*)*/'] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.4.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', '")"'] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.5.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', '')''] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.6.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', '()()'] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.7.css: -------------------------------------------------------------------------------- 1 | expression( 2 | // ) 3 | ) 4 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.5.css: -------------------------------------------------------------------------------- 1 | test( 10px , 'test' test( x ) , 89% ) 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.5.l: -------------------------------------------------------------------------------- 1 | test( 10px , 'test' test( x ) , 89% ) 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.0.css: -------------------------------------------------------------------------------- 1 | s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.2.css: -------------------------------------------------------------------------------- 1 | @media x , y f( 1 + 2 ) { s { p : v } } 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.2.l: -------------------------------------------------------------------------------- 1 | @media x , y f( 1 + 2 ) { s { p : v } } 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.0.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']]] -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.0.l: -------------------------------------------------------------------------------- 1 | :nth-child(/*test*/2n/*test*/+/*test*/1/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.0.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'test']] 3 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.2.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['shash', 'test']] 3 | -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.0.p: -------------------------------------------------------------------------------- 1 | ['dimension', 2 | ['number', '10'], 3 | ['ident', 'px']] -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.1.p: -------------------------------------------------------------------------------- 1 | ['dimension', 2 | ['number', '.10'], 3 | ['ident', 'px']] -------------------------------------------------------------------------------- /test/data/test_dimension/dimension.2.p: -------------------------------------------------------------------------------- 1 | ['dimension', 2 | ['number', '12.34'], 3 | ['ident', 'px']] -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.2.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', 'expression()'] 2 | -------------------------------------------------------------------------------- /test/data/test_functionExpression/functionExpression.7.p: -------------------------------------------------------------------------------- 1 | ['functionExpression', ' 2 | // ) 3 | '] 4 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.0.css: -------------------------------------------------------------------------------- 1 | :nth-child(/*test*/2n/*test*/+/*test*/1/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.c.0.css: -------------------------------------------------------------------------------- 1 | /* test */ 2 | s { 3 | p: v 4 | } 5 | /* test */ 6 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.c.0.l: -------------------------------------------------------------------------------- 1 | /* test */ 2 | s { 3 | p: v 4 | } 5 | /* test */ 6 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.1.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['s', ' '], 3 | ['decldelim'], 4 | ['s', ' ']] 5 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.0.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody']] 4 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.2.l: -------------------------------------------------------------------------------- 1 | s0/*test*/,/*test*/s1/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.1.l: -------------------------------------------------------------------------------- 1 | s0 { 2 | p0: v0 3 | } 4 | 5 | s1 { 6 | p1: v1 7 | } 8 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.1.css: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.1.l: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.1.css: -------------------------------------------------------------------------------- 1 | :nth-last-child(/*test*/+/*test*/3n/*test*/-/*test*/2/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.1.l: -------------------------------------------------------------------------------- 1 | :nth-last-child(/*test*/+/*test*/3n/*test*/-/*test*/2/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.2.css: -------------------------------------------------------------------------------- 1 | s0/*test*/,/*test*/s1/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.1.css: -------------------------------------------------------------------------------- 1 | s0 { 2 | p0: v0 3 | } 4 | 5 | s1 { 6 | p1: v1 7 | } 8 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.1.p: -------------------------------------------------------------------------------- 1 | ['uri', 2 | ['comment', 'test'], 3 | ['raw', 'http://test.com/*test*/']] 4 | -------------------------------------------------------------------------------- /test/data/test_value/value.3.p: -------------------------------------------------------------------------------- 1 | ['value', 2 | ['number', '10'], 3 | ['s', ' '], 4 | ['important']] 5 | -------------------------------------------------------------------------------- /test/data/test_value/value.4.p: -------------------------------------------------------------------------------- 1 | ['value', 2 | ['unary', '-'], 3 | ['percentage', 4 | ['number', '100']]] -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.0.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.1.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['s', ' '], 3 | ['number', '1'], 4 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.2.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['s', ' '], 3 | ['ident', 'x'], 4 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.5.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['s', ' '], 3 | ['number', '1'], 4 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.6.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['s', ' '], 3 | ['ident', 'x'], 4 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.1.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['clazz', 3 | ['ident', 'test']]] 4 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.1.p: -------------------------------------------------------------------------------- 1 | ['uri', 2 | ['s', ' '], 3 | ['raw', 'http://test.com'], 4 | ['s', ' ']] 5 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.0.css: -------------------------------------------------------------------------------- 1 | @media/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.0.l: -------------------------------------------------------------------------------- 1 | @media/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.0.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['ident', 'a'], 3 | ['attrselector', '='], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.s.0.p: -------------------------------------------------------------------------------- 1 | ['uri', 2 | ['s', ' '], 3 | ['string', ''http://test.com''], 4 | ['s', ' ']] 5 | -------------------------------------------------------------------------------- /sample/injectrule/GNUmakefile: -------------------------------------------------------------------------------- 1 | build: src/transformer.ometajs 2 | @ometajs2js -i src/transformer.ometajs > src/injectrule.js 3 | -------------------------------------------------------------------------------- /test/data/test_atruler/webkit.keyfraymes.0.l: -------------------------------------------------------------------------------- 1 | @-webkit-keyframes pulsate {0% {opacity: .5}50% {opacity: 1}100% {opacity: .5}} 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.0.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.1.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['ident', 'a'], 3 | ['attrselector', '='], 4 | ['string', ''b'']] 5 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.1.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['comment', 'test'], 3 | ['decldelim'], 4 | ['comment', 'test']] 5 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.3.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['ident', 'x'], 3 | ['unary', '+'], 4 | ['number', '1']] 5 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.7.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['ident', 'x'], 3 | ['unary', '+'], 4 | ['number', '1']] 5 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.8.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['ident', 'test'], 3 | ['operator', ':'], 4 | ['number', '0']] -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.0.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['s', ' ']]] 5 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.1.l: -------------------------------------------------------------------------------- 1 | s/*test*/{/*test*/p0/*test*/:/*test*/v0/*test*/;/*test*/p1/*test*/:/*test*/v1/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.2.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['atrules', 3 | ['atkeyword', 4 | ['ident', 'test']]]] -------------------------------------------------------------------------------- /test/data/test_atruler/webkit.keyfraymes.0.css: -------------------------------------------------------------------------------- 1 | @-webkit-keyframes pulsate {0% {opacity: .5}50% {opacity: 1}100% {opacity: .5}} 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.2.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['comment', 'test'], 3 | ['ident', 'x'], 4 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.6.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['comment', 'test'], 3 | ['ident', 'x'], 4 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_funktion/function.1.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['ident', 'n']]] 5 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.1.css: -------------------------------------------------------------------------------- 1 | s/*test*/{/*test*/p0/*test*/:/*test*/v0/*test*/;/*test*/p1/*test*/:/*test*/v1/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.1.l: -------------------------------------------------------------------------------- 1 | @media/*test*/x/*test*/y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.1.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['comment', 'test'], 3 | ['number', '1'], 4 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.5.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['comment', 'test'], 3 | ['number', '1'], 4 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_funktion/function.2.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test-test'], 3 | ['functionBody', 4 | ['ident', 'n']]] 5 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.0.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['comment', 'test']]] 5 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.5.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['s', ' '], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_uri/uri.c.0.p: -------------------------------------------------------------------------------- 1 | ['uri', 2 | ['comment', 'test'], 3 | ['string', ''http://test.com''], 4 | ['comment', 'test']] 5 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.1.css: -------------------------------------------------------------------------------- 1 | @media/*test*/x/*test*/y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.2.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['string', '"blah"']] -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.5.l: -------------------------------------------------------------------------------- 1 | test(/*test*/10px/*test*/,/*test*/'test'/*test*/test(/*test*/x/*test*/)/*test*/,/*test*/89%/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.10.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['namespace'], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.0.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['s', ' '], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.5.css: -------------------------------------------------------------------------------- 1 | test(/*test*/10px/*test*/,/*test*/'test'/*test*/test(/*test*/x/*test*/)/*test*/,/*test*/89%/*test*/) 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.3.l: -------------------------------------------------------------------------------- 1 | s0/*test*/,/*test*/s1/*test*/{/*test*/p0/*test*/:/*test*/v0/*test*/;/*test*/p1/*test*/:/*test*/v1/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.6.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['combinator', '+'], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.7.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['combinator', '>'], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.8.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['combinator', '~'], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.0.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['comment', 'test'], 4 | ['ident', 'b']] 5 | -------------------------------------------------------------------------------- /test/data/test_value/value.2.p: -------------------------------------------------------------------------------- 1 | ['value', 2 | ['funktion', 3 | ['ident', 'test'], 4 | ['functionBody', 5 | ['ident', 'x']]]] 6 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.0.l: -------------------------------------------------------------------------------- 1 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.2.l: -------------------------------------------------------------------------------- 1 | *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.3.l: -------------------------------------------------------------------------------- 1 | -filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.4.l: -------------------------------------------------------------------------------- 1 | _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.6.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['clazz', 5 | ['ident', 'test']]]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.3.css: -------------------------------------------------------------------------------- 1 | s0/*test*/,/*test*/s1/*test*/{/*test*/p0/*test*/:/*test*/v0/*test*/;/*test*/p1/*test*/:/*test*/v1/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.0.css: -------------------------------------------------------------------------------- 1 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.2.css: -------------------------------------------------------------------------------- 1 | *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.3.css: -------------------------------------------------------------------------------- 1 | -filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.4.css: -------------------------------------------------------------------------------- 1 | _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.5.css: -------------------------------------------------------------------------------- 1 | -ms-filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.5.l: -------------------------------------------------------------------------------- 1 | -ms-filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.s.0.l: -------------------------------------------------------------------------------- 1 | filter : progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.0.p: -------------------------------------------------------------------------------- 1 | ['nthselector', 2 | ['ident', 'nth-child'], 3 | ['nth', '2n'], 4 | ['unary', '+'], 5 | ['nth', '1']] -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.0.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property']], 4 | ['value', 5 | ['ident', 'value']]] 6 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.s.0.css: -------------------------------------------------------------------------------- 1 | filter : progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.2.css: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/,/*test*/y/*test*/x(/*test*/1/*test*/+/*test*/2/*test*/)/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.2.l: -------------------------------------------------------------------------------- 1 | @test/*test*/x/*test*/,/*test*/y/*test*/x(/*test*/1/*test*/+/*test*/2/*test*/)/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.2.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['declaration', 3 | ['property', 4 | ['ident', 'p']], 5 | ['value', 6 | ['ident', 'v']]]] 7 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.1.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', '-my-property']], 4 | ['value', 5 | ['ident', 'value']]] 6 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.c.0.css: -------------------------------------------------------------------------------- 1 | filter/*test*/:/*test*/progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.c.0.l: -------------------------------------------------------------------------------- 1 | filter/*test*/:/*test*/progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.4.css: -------------------------------------------------------------------------------- 1 | .test{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale');color:red} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.4.l: -------------------------------------------------------------------------------- 1 | .test{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale');color:red} 2 | -------------------------------------------------------------------------------- /test/data/test_selector/selector.0.p: -------------------------------------------------------------------------------- 1 | ['selector', 2 | ['simpleselector', 3 | ['ident', 'a']], 4 | ['delim'], 5 | ['simpleselector', 6 | ['ident', 'b']]] -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.3.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['attrib', 3 | ['ident', 'a'], 4 | ['attrselector', '='], 5 | ['ident', 'b']]] 6 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.1.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['s', ' '], 5 | ['ident', 'n'], 6 | ['s', ' ']]] 7 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.4.cl: -------------------------------------------------------------------------------- 1 | .test{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale');color:red} 2 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.1.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['ident', 'y']] -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.s.1.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['ident', 'y']] -------------------------------------------------------------------------------- /test/data/test_funktion/function.3.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['ident', 'x'], 5 | ['unary', '+'], 6 | ['ident', 'y']]] 7 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.4.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['ident', 'x'], 5 | ['operator', ','], 6 | ['ident', 'y']]] 7 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.2.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test-test'], 3 | ['functionBody', 4 | ['s', ' '], 5 | ['ident', 'n'], 6 | ['s', ' ']]] 7 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.1.p: -------------------------------------------------------------------------------- 1 | ['nthselector', 2 | ['ident', 'nth-last-child'], 3 | ['unary', '+'], 4 | ['nth', '3n'], 5 | ['unary', '-'], 6 | ['nth', '2']] -------------------------------------------------------------------------------- /test/data/test_block/block.3.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['declaration', 3 | ['property', 4 | ['ident', 'p']], 5 | ['value', 6 | ['ident', 'v']]], 7 | ['decldelim']] 8 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.0.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property'], 4 | ['s', ' ']], 5 | ['value', 6 | ['ident', 'value']]] 7 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.1.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property']], 4 | ['value', 5 | ['s', ' '], 6 | ['ident', 'value']]] 7 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.c.1.css: -------------------------------------------------------------------------------- 1 | filter/*test*/:/*test*/progid:DXImageTransform.Microsoft.AlphaImageLoader(/*)*/src='images/transparent-border.png'/*)*/,/*)*/sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.c.1.l: -------------------------------------------------------------------------------- 1 | filter/*test*/:/*test*/progid:DXImageTransform.Microsoft.AlphaImageLoader(/*)*/src='images/transparent-border.png'/*)*/,/*)*/sizingMethod='scale') 2 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.1.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['s', ' '], 4 | ['combinator', '+'], 5 | ['s', ' '], 6 | ['ident', 'b']] 7 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.2.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['s', ' '], 4 | ['combinator', '>'], 5 | ['s', ' '], 6 | ['ident', 'b']] 7 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.3.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['s', ' '], 4 | ['combinator', '~'], 5 | ['s', ' '], 6 | ['ident', 'b']] 7 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.2.l: -------------------------------------------------------------------------------- 1 | @media/*test*/x/*test*/,/*test*/y/*test*/f(/*test*/1/*test*/+/*test*/2/*test*/)/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.1.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['comment', 'test'], 5 | ['ident', 'n'], 6 | ['comment', 'test']]] 7 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.2.css: -------------------------------------------------------------------------------- 1 | @media/*test*/x/*test*/,/*test*/y/*test*/f(/*test*/1/*test*/+/*test*/2/*test*/)/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} 2 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.0.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property'], 4 | ['comment', 'test']], 5 | ['value', 6 | ['ident', 'value']]] 7 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.1.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property']], 4 | ['value', 5 | ['comment', 'test'], 6 | ['ident', 'value']]] 7 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.2.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test-test'], 3 | ['functionBody', 4 | ['comment', 'test'], 5 | ['ident', 'n'], 6 | ['comment', 'test']]] 7 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.4.l: -------------------------------------------------------------------------------- 1 | .test { 2 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale'); 3 | color:red 4 | } 5 | -------------------------------------------------------------------------------- /test/data/test_atrules/atrules.c.1.p: -------------------------------------------------------------------------------- 1 | ['atrules', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['comment', 'test'], 5 | ['ident', 'x'], 6 | ['comment', 'test'], 7 | ['ident', 'y']] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.4.css: -------------------------------------------------------------------------------- 1 | .test { 2 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale'); 3 | color:red 4 | } 5 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.1.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['comment', 'test'], 4 | ['combinator', '+'], 5 | ['comment', 'test'], 6 | ['ident', 'b']] 7 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.2.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['comment', 'test'], 4 | ['combinator', '>'], 5 | ['comment', 'test'], 6 | ['ident', 'b']] 7 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.c.3.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['comment', 'test'], 4 | ['combinator', '~'], 5 | ['comment', 'test'], 6 | ['ident', 'b']] 7 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.s.0.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['s', ' '], 3 | ['ident', 'a'], 4 | ['s', ' '], 5 | ['attrselector', '='], 6 | ['s', ' '], 7 | ['ident', 'b'], 8 | ['s', ' ']] 9 | -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.s.1.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['s', ' '], 3 | ['ident', 'a'], 4 | ['s', ' '], 5 | ['attrselector', '='], 6 | ['s', ' '], 7 | ['string', ''b''], 8 | ['s', ' ']] 9 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.3.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['s', ' '], 3 | ['ident', 'x'], 4 | ['s', ' '], 5 | ['unary', '+'], 6 | ['s', ' '], 7 | ['number', '1'], 8 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.s.7.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['s', ' '], 3 | ['ident', 'x'], 4 | ['s', ' '], 5 | ['unary', '+'], 6 | ['s', ' '], 7 | ['number', '1'], 8 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.2.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property'], 4 | ['s', ' ']], 5 | ['value', 6 | ['s', ' '], 7 | ['ident', 'value']]] 8 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.3.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['atrules', 3 | ['atkeyword', 4 | ['ident', 'test0']]], 5 | ['atrules', 6 | ['atkeyword', 7 | ['ident', 'test1']]]] -------------------------------------------------------------------------------- /test/data/test_block/block.s.2.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['s', ' '], 3 | ['declaration', 4 | ['property', 5 | ['ident', 'p']], 6 | ['value', 7 | ['ident', 'v'], 8 | ['s', ' ']]]] 9 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.s.3.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property'], 4 | ['s', ' ']], 5 | ['value', 6 | ['s', ' '], 7 | ['ident', 'value']]] 8 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.9.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['nthselector', 3 | ['ident', 'nth-child'], 4 | ['unary', '+'], 5 | ['nth', '3n'], 6 | ['unary', '-'], 7 | ['nth', '2']]] -------------------------------------------------------------------------------- /test/data/test_block/block.c.2.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['comment', 'test'], 3 | ['declaration', 4 | ['property', 5 | ['ident', 'p']], 6 | ['value', 7 | ['ident', 'v'], 8 | ['comment', 'test']]]] 9 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.2.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property'], 4 | ['comment', 'test']], 5 | ['value', 6 | ['comment', 'test'], 7 | ['ident', 'value']]] 8 | -------------------------------------------------------------------------------- /test/data/test_selector/selector.1.p: -------------------------------------------------------------------------------- 1 | ['selector', 2 | ['simpleselector', 3 | ['ident', 'a'], 4 | ['combinator', '+'], 5 | ['ident', 'b']], 6 | ['delim'], 7 | ['simpleselector', 8 | ['ident', 'c']]] -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.2.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['atrules', 3 | ['atkeyword', 4 | ['ident', 'test0']]], 5 | ['s', ' 6 | '], 7 | ['atrules', 8 | ['atkeyword', 9 | ['ident', 'test1']]]] -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.c.0.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['comment', 'test'], 3 | ['ident', 'a'], 4 | ['comment', 'test'], 5 | ['attrselector', '='], 6 | ['comment', 'test'], 7 | ['ident', 'b'], 8 | ['comment', 'test']] 9 | -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.3.p: -------------------------------------------------------------------------------- 1 | ['braces', '(', ')', 2 | ['comment', 'test'], 3 | ['ident', 'x'], 4 | ['comment', 'test'], 5 | ['unary', '+'], 6 | ['comment', 'test'], 7 | ['number', '1'], 8 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_braces/braces.c.7.p: -------------------------------------------------------------------------------- 1 | ['braces', '[', ']', 2 | ['comment', 'test'], 3 | ['ident', 'x'], 4 | ['comment', 'test'], 5 | ['unary', '+'], 6 | ['comment', 'test'], 7 | ['number', '1'], 8 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.0.p: -------------------------------------------------------------------------------- 1 | ['nthselector', 2 | ['ident', 'nth-child'], 3 | ['s', ' '], 4 | ['nth', '2n'], 5 | ['s', ' '], 6 | ['unary', '+'], 7 | ['s', ' '], 8 | ['nth', '1'], 9 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_attrib/attrib.c.1.p: -------------------------------------------------------------------------------- 1 | ['attrib', 2 | ['comment', 'test'], 3 | ['ident', 'a'], 4 | ['comment', 'test'], 5 | ['attrselector', '='], 6 | ['comment', 'test'], 7 | ['string', ''b''], 8 | ['comment', 'test']] 9 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.1.l: -------------------------------------------------------------------------------- 1 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='something') 2 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.0.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['block', 5 | ['declaration', 6 | ['property', 7 | ['ident', 'p']], 8 | ['value', 9 | ['ident', 'v']]]]] -------------------------------------------------------------------------------- /test/data/test_filter/filter.1.css: -------------------------------------------------------------------------------- 1 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='something') 2 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.s.1.l: -------------------------------------------------------------------------------- 1 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='something') 3 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.5.l: -------------------------------------------------------------------------------- 1 | .test{color:red;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='test')} 2 | -------------------------------------------------------------------------------- /sample/injectrule/src/transformer.ometajs: -------------------------------------------------------------------------------- 1 | var ometajs = require('ometajs'), 2 | OMeta = ometajs.OMeta; 3 | 4 | ometa IRTransformer { 5 | before = sample, 6 | 7 | sample = ['atrules' ['atkeyword' 'sample']] -> [#raw, '* { color: red }'] 8 | } 9 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.s.1.css: -------------------------------------------------------------------------------- 1 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 2 | progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='something') 3 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.5.css: -------------------------------------------------------------------------------- 1 | .test{color:red;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='test')} 2 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.5.cl: -------------------------------------------------------------------------------- 1 | .test{color:red;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='test')} 2 | -------------------------------------------------------------------------------- /test/data/test_block/block.s.3.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['s', ' '], 3 | ['declaration', 4 | ['property', 5 | ['ident', 'p']], 6 | ['value', 7 | ['ident', 'v'], 8 | ['s', ' ']]], 9 | ['decldelim'], 10 | ['s', ' ']] 11 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.0.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', 'filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_filter/filter.2.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', '*filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_filter/filter.3.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', '-filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_filter/filter.4.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', '_filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.0.p: -------------------------------------------------------------------------------- 1 | ['nthselector', 2 | ['ident', 'nth-child'], 3 | ['comment', 'test'], 4 | ['nth', '2n'], 5 | ['comment', 'test'], 6 | ['unary', '+'], 7 | ['comment', 'test'], 8 | ['nth', '1'], 9 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.12.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'x'], 3 | ['pseudoc', 4 | ['funktion', 5 | ['ident', 'not'], 6 | ['functionBody', 7 | ['braces', '[', ']', 8 | ['ident', 'ABC']]]]]] 9 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.5.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', '-ms-filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.3.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['unary', '+'], 8 | ['s', ' '], 9 | ['ident', 'y'], 10 | ['s', ' ']]] 11 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.4.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['operator', ','], 8 | ['s', ' '], 9 | ['ident', 'y'], 10 | ['s', ' ']]] 11 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.11.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', '*'], 3 | ['namespace'], 4 | ['ident', '*'], 5 | ['pseudoc', 6 | ['funktion', 7 | ['ident', 'not'], 8 | ['functionBody', 9 | ['ident', '*']]]]] 10 | -------------------------------------------------------------------------------- /test/data/test_block/block.c.3.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['comment', 'test'], 3 | ['declaration', 4 | ['property', 5 | ['ident', 'p']], 6 | ['value', 7 | ['ident', 'v'], 8 | ['comment', 'test']]], 9 | ['decldelim'], 10 | ['comment', 'test']] 11 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.0.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's']]], 5 | ['block', 6 | ['declaration', 7 | ['property', 8 | ['ident', 'p']], 9 | ['value', 10 | ['ident', 'v']]]]] 11 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.4.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['attrib', 3 | ['ident', 'a'], 4 | ['attrselector', '='], 5 | ['ident', 'b']], 6 | ['attrib', 7 | ['ident', 'c'], 8 | ['attrselector', '='], 9 | ['string', ''d'']]] 10 | -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.s.1.p: -------------------------------------------------------------------------------- 1 | ['nthselector', 2 | ['ident', 'nth-last-child'], 3 | ['s', ' '], 4 | ['unary', '+'], 5 | ['s', ' '], 6 | ['nth', '3n'], 7 | ['s', ' '], 8 | ['unary', '-'], 9 | ['s', ' '], 10 | ['nth', '2'], 11 | ['s', ' ']] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.5.css: -------------------------------------------------------------------------------- 1 | .test { 2 | color:red; 3 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 4 | progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='test') 5 | } 6 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.5.l: -------------------------------------------------------------------------------- 1 | .test { 2 | color:red; 3 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale') 4 | progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='test') 5 | } 6 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.3.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['comment', 'test'], 5 | ['ident', 'x'], 6 | ['comment', 'test'], 7 | ['unary', '+'], 8 | ['comment', 'test'], 9 | ['ident', 'y'], 10 | ['comment', 'test']]] 11 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.s.0.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', 'filter'], 4 | ['s', ' ']], 5 | ['filterv', 6 | ['progid', 7 | ['s', ' '], 8 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.4.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['comment', 'test'], 5 | ['ident', 'x'], 6 | ['comment', 'test'], 7 | ['operator', ','], 8 | ['comment', 'test'], 9 | ['ident', 'y'], 10 | ['comment', 'test']]] 11 | -------------------------------------------------------------------------------- /test/data/test_block/block.4.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['declaration', 3 | ['property', 4 | ['ident', 'p0']], 5 | ['value', 6 | ['ident', 'v0']]], 7 | ['decldelim'], 8 | ['declaration', 9 | ['property', 10 | ['ident', 'p1']], 11 | ['value', 12 | ['ident', 'v1']]]] 13 | -------------------------------------------------------------------------------- /test/data/test_declaration/declaration.c.3.p: -------------------------------------------------------------------------------- 1 | ['declaration', 2 | ['property', 3 | ['ident', 'property'], 4 | ['s', ' '], 5 | ['comment', 'test'], 6 | ['s', ' ']], 7 | ['value', 8 | ['s', ' '], 9 | ['comment', 'test'], 10 | ['s', ' '], 11 | ['ident', 'value']]] 12 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.c.0.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', 'filter'], 4 | ['comment', 'test']], 5 | ['filterv', 6 | ['progid', 7 | ['comment', 'test'], 8 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_nthselector/nthselector.c.1.p: -------------------------------------------------------------------------------- 1 | ['nthselector', 2 | ['ident', 'nth-last-child'], 3 | ['comment', 'test'], 4 | ['unary', '+'], 5 | ['comment', 'test'], 6 | ['nth', '3n'], 7 | ['comment', 'test'], 8 | ['unary', '-'], 9 | ['comment', 'test'], 10 | ['nth', '2'], 11 | ['comment', 'test']] -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.0.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['ruleset', 3 | ['selector', 4 | ['simpleselector', 5 | ['ident', 's']]], 6 | ['block', 7 | ['declaration', 8 | ['property', 9 | ['ident', 'p']], 10 | ['value', 11 | ['ident', 'v']]]]]] 12 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.c.1.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', 'filter'], 4 | ['comment', 'test']], 5 | ['filterv', 6 | ['progid', 7 | ['comment', 'test'], 8 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(/*)*/src='images/transparent-border.png'/*)*/,/*)*/sizingMethod='scale')']]]] -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.1.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['ident', 'y'], 8 | ['s', ' '], 9 | ['block', 10 | ['declaration', 11 | ['property', 12 | ['ident', 'p']], 13 | ['value', 14 | ['ident', 'v']]]]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.2.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's0']], 5 | ['delim'], 6 | ['simpleselector', 7 | ['ident', 's1']]], 8 | ['block', 9 | ['declaration', 10 | ['property', 11 | ['ident', 'p']], 12 | ['value', 13 | ['ident', 'v']]]]] -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.0.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['block', 6 | ['s', ' '], 7 | ['declaration', 8 | ['property', 9 | ['ident', 'p'], 10 | ['s', ' ']], 11 | ['value', 12 | ['s', ' '], 13 | ['ident', 'v'], 14 | ['s', ' ']]]]] -------------------------------------------------------------------------------- /test/data/test_filter/filter.1.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', 'filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']], 7 | ['progid', 8 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='something')']]]] -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.4.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['ruleset', 3 | ['selector', 4 | ['simpleselector', 5 | ['ident', 's']]], 6 | ['block', 7 | ['declaration', 8 | ['property', 9 | ['ident', 'p']], 10 | ['value', 11 | ['ident', 'v']]]]], 12 | ['atrules', 13 | ['atkeyword', 14 | ['ident', 'test']]]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.0.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's'], 5 | ['s', ' ']]], 6 | ['block', 7 | ['s', ' '], 8 | ['declaration', 9 | ['property', 10 | ['ident', 'p'], 11 | ['s', ' ']], 12 | ['value', 13 | ['s', ' '], 14 | ['ident', 'v'], 15 | ['s', ' ']]]]] 16 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.0.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['comment', 'test'], 5 | ['block', 6 | ['comment', 'test'], 7 | ['declaration', 8 | ['property', 9 | ['ident', 'p'], 10 | ['comment', 'test']], 11 | ['value', 12 | ['comment', 'test'], 13 | ['ident', 'v'], 14 | ['comment', 'test']]]]] -------------------------------------------------------------------------------- /test/data/test_block/block.s.4.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['s', ' '], 3 | ['declaration', 4 | ['property', 5 | ['ident', 'p0']], 6 | ['value', 7 | ['ident', 'v0'], 8 | ['s', ' ']]], 9 | ['decldelim'], 10 | ['s', ' '], 11 | ['declaration', 12 | ['property', 13 | ['ident', 'p1']], 14 | ['value', 15 | ['ident', 'v1'], 16 | ['s', ' ']]]] 17 | -------------------------------------------------------------------------------- /test/data/test_simpleselector/simpleselector.s.4.p: -------------------------------------------------------------------------------- 1 | ['simpleselector', 2 | ['ident', 'a'], 3 | ['s', ' '], 4 | ['ident', 'b'], 5 | ['s', ' '], 6 | ['combinator', '+'], 7 | ['s', ' '], 8 | ['ident', 'c'], 9 | ['s', ' '], 10 | ['combinator', '>'], 11 | ['s', ' '], 12 | ['ident', 'd'], 13 | ['s', ' '], 14 | ['combinator', '~'], 15 | ['s', ' '], 16 | ['ident', 'e']] 17 | -------------------------------------------------------------------------------- /test/data/test_filter/filter.s.1.p: -------------------------------------------------------------------------------- 1 | ['filter', 2 | ['property', 3 | ['ident', 'filter']], 4 | ['filterv', 5 | ['progid', 6 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')'], 7 | ['s', ' 8 | ']], 9 | ['progid', 10 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='something')']]]] -------------------------------------------------------------------------------- /test/data/test_block/block.c.4.p: -------------------------------------------------------------------------------- 1 | ['block', 2 | ['comment', 'test'], 3 | ['declaration', 4 | ['property', 5 | ['ident', 'p0']], 6 | ['value', 7 | ['ident', 'v0'], 8 | ['comment', 'test']]], 9 | ['decldelim'], 10 | ['comment', 'test'], 11 | ['declaration', 12 | ['property', 13 | ['ident', 'p1']], 14 | ['value', 15 | ['ident', 'v1'], 16 | ['comment', 'test']]]] 17 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.1.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's']]], 5 | ['block', 6 | ['declaration', 7 | ['property', 8 | ['ident', 'p0']], 9 | ['value', 10 | ['ident', 'v0']]], 11 | ['decldelim'], 12 | ['declaration', 13 | ['property', 14 | ['ident', 'p1']], 15 | ['value', 16 | ['ident', 'v1']]]]] 17 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.0.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's'], 5 | ['comment', 'test']]], 6 | ['block', 7 | ['comment', 'test'], 8 | ['declaration', 9 | ['property', 10 | ['ident', 'p'], 11 | ['comment', 'test']], 12 | ['value', 13 | ['comment', 'test'], 14 | ['ident', 'v'], 15 | ['comment', 'test']]]]] 16 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.0.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['ruleset', 3 | ['selector', 4 | ['simpleselector', 5 | ['ident', 's'], 6 | ['s', ' ']]], 7 | ['block', 8 | ['s', ' 9 | '], 10 | ['declaration', 11 | ['property', 12 | ['ident', 'p']], 13 | ['value', 14 | ['s', ' '], 15 | ['ident', 'v'], 16 | ['s', ' 17 | ']]]]]] 18 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.0.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['s', ' ']], 6 | ['atrulers', 7 | ['ruleset', 8 | ['selector', 9 | ['simpleselector', 10 | ['ident', 's']]], 11 | ['block', 12 | ['declaration', 13 | ['property', 14 | ['ident', 'p']], 15 | ['value', 16 | ['ident', 'v']]]]]]] -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.1.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['ident', 'y'], 8 | ['s', ' '], 9 | ['block', 10 | ['s', ' '], 11 | ['declaration', 12 | ['property', 13 | ['ident', 'p'], 14 | ['s', ' ']], 15 | ['value', 16 | ['s', ' '], 17 | ['ident', 'v'], 18 | ['s', ' ']]]]] -------------------------------------------------------------------------------- /bin/cssp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH="$SELF_PATH/$(basename -- "$0")" 4 | 5 | while [ -h "$SELF_PATH" ]; do 6 | DIR=$(dirname -- "$SELF_PATH") 7 | SYM=$(readlink -- "$SELF_PATH") 8 | SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM") 9 | done 10 | 11 | CSSP_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")") 12 | 13 | node $CSSP_HOME/lib/cssp.js $@ 14 | 15 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.5.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['dimension', 5 | ['number', '10'], 6 | ['ident', 'px']], 7 | ['operator', ','], 8 | ['string', ''test''], 9 | ['s', ' '], 10 | ['funktion', 11 | ['ident', 'test'], 12 | ['functionBody', 13 | ['ident', 'x']]], 14 | ['operator', ','], 15 | ['percentage', 16 | ['number', '89']]]] 17 | -------------------------------------------------------------------------------- /GNUmakefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | build: src/parser.ometajs src/transformer.ometajs src/translator.ometajs src/cssptt.pre.js 4 | @cp src/cssptt.pre.js src/cssptt.js 5 | @node_modules/.bin/ometajs2js -b -i src/parser.ometajs >> src/cssptt.js 6 | @node_modules/.bin/ometajs2js -b -i src/transformer.ometajs >> src/cssptt.js 7 | @node_modules/.bin/ometajs2js -b -i src/translator.ometajs >> src/cssptt.js 8 | 9 | test: 10 | @node --stack-trace-limit=1024 test/test.js 11 | -------------------------------------------------------------------------------- /sample/injectrule/lib/injectrule.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'), 2 | print = require('sys').print, 3 | cssp = require('../../../lib/csspapi.js'), 4 | ir = require('../src/injectrule.js'), 5 | src = process.argv[2] ? fs.readFileSync(process.argv[2]).toString() : null; 6 | 7 | if (src !== null) { 8 | print(cssp.translate(cssp.transform(cssp.parse(src), ir.IRTransformer), ir.IRTranslator)); 9 | } else { 10 | console.log('USAGE: injectrule filename'); 11 | } 12 | -------------------------------------------------------------------------------- /sample/injectrule/bin/injectrule: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH="$SELF_PATH/$(basename -- "$0")" 4 | 5 | while [ -h "$SELF_PATH" ]; do 6 | DIR=$(dirname -- "$SELF_PATH") 7 | SYM=$(readlink -- "$SELF_PATH") 8 | SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM") 9 | done 10 | 11 | IR_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")") 12 | 13 | node $IR_HOME/lib/injectrule.js $@ 14 | 15 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.1.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['comment', 'test'], 5 | ['ident', 'x'], 6 | ['comment', 'test'], 7 | ['ident', 'y'], 8 | ['comment', 'test'], 9 | ['block', 10 | ['comment', 'test'], 11 | ['declaration', 12 | ['property', 13 | ['ident', 'p'], 14 | ['comment', 'test']], 15 | ['value', 16 | ['comment', 'test'], 17 | ['ident', 'v'], 18 | ['comment', 'test']]]]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.3.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's0']], 5 | ['delim'], 6 | ['simpleselector', 7 | ['ident', 's1']]], 8 | ['block', 9 | ['declaration', 10 | ['property', 11 | ['ident', 'p0']], 12 | ['value', 13 | ['ident', 'v0']]], 14 | ['decldelim'], 15 | ['declaration', 16 | ['property', 17 | ['ident', 'p1']], 18 | ['value', 19 | ['ident', 'v1']]]]] -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.3.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['ruleset', 3 | ['selector', 4 | ['simpleselector', 5 | ['ident', 's'], 6 | ['s', ' ']]], 7 | ['block', 8 | ['s', ' 9 | '], 10 | ['declaration', 11 | ['property', 12 | ['ident', 'p']], 13 | ['value', 14 | ['ident', 'v'], 15 | ['s', ' 16 | ']]]]], 17 | ['s', ' 18 | 19 | '], 20 | ['atrules', 21 | ['atkeyword', 22 | ['ident', 'test']]]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.2.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's0'], 5 | ['s', ' ']], 6 | ['delim'], 7 | ['simpleselector', 8 | ['s', ' '], 9 | ['ident', 's1'], 10 | ['s', ' ']]], 11 | ['block', 12 | ['s', ' '], 13 | ['declaration', 14 | ['property', 15 | ['ident', 'p'], 16 | ['s', ' ']], 17 | ['value', 18 | ['s', ' '], 19 | ['ident', 'v'], 20 | ['s', ' ']]]]] -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.1.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['s', ' '], 6 | ['ident', 'x'], 7 | ['s', ' '], 8 | ['ident', 'y'], 9 | ['s', ' ']], 10 | ['atrulers', 11 | ['ruleset', 12 | ['selector', 13 | ['simpleselector', 14 | ['ident', 's']]], 15 | ['block', 16 | ['declaration', 17 | ['property', 18 | ['ident', 'p']], 19 | ['value', 20 | ['ident', 'v']]]]]]] -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.c.0.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['comment', ' test '], 3 | ['s', ' 4 | '], 5 | ['ruleset', 6 | ['selector', 7 | ['simpleselector', 8 | ['ident', 's'], 9 | ['s', ' ']]], 10 | ['block', 11 | ['s', ' 12 | '], 13 | ['declaration', 14 | ['property', 15 | ['ident', 'p']], 16 | ['value', 17 | ['s', ' '], 18 | ['ident', 'v'], 19 | ['s', ' 20 | ']]]]], 21 | ['s', ' 22 | '], 23 | ['comment', ' test ']] 24 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.2.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['operator', ','], 7 | ['s', ' '], 8 | ['ident', 'y'], 9 | ['s', ' '], 10 | ['funktion', 11 | ['ident', 'x'], 12 | ['functionBody', 13 | ['number', '1'], 14 | ['unary', '+'], 15 | ['number', '2']]], 16 | ['s', ' '], 17 | ['block', 18 | ['declaration', 19 | ['property', 20 | ['ident', 'p']], 21 | ['value', 22 | ['ident', 'v']]]]] 23 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.2.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's0'], 5 | ['comment', 'test']], 6 | ['delim'], 7 | ['simpleselector', 8 | ['comment', 'test'], 9 | ['ident', 's1'], 10 | ['comment', 'test']]], 11 | ['block', 12 | ['comment', 'test'], 13 | ['declaration', 14 | ['property', 15 | ['ident', 'p'], 16 | ['comment', 'test']], 17 | ['value', 18 | ['comment', 'test'], 19 | ['ident', 'v'], 20 | ['comment', 'test']]]]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.4.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['clazz', 5 | ['ident', 'test']]]], 6 | ['block', 7 | ['filter', 8 | ['property', 9 | ['ident', 'filter']], 10 | ['filterv', 11 | ['progid', 12 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]], 13 | ['decldelim'], 14 | ['declaration', 15 | ['property', 16 | ['ident', 'color']], 17 | ['value', 18 | ['ident', 'red']]]]] 19 | -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.1.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['ruleset', 3 | ['selector', 4 | ['simpleselector', 5 | ['ident', 's0']]], 6 | ['block', 7 | ['declaration', 8 | ['property', 9 | ['ident', 'p0']], 10 | ['value', 11 | ['ident', 'v0']]]]], 12 | ['ruleset', 13 | ['selector', 14 | ['simpleselector', 15 | ['ident', 's1']]], 16 | ['block', 17 | ['declaration', 18 | ['property', 19 | ['ident', 'p1']], 20 | ['value', 21 | ['ident', 'v1']]]]]] 22 | -------------------------------------------------------------------------------- /sample/injectrule/src/injectrule.js: -------------------------------------------------------------------------------- 1 | {var ometajs = require("ometajs"),OMeta = ometajs["OMeta"];var IRTransformer=exports.IRTransformer=objectThatDelegatesTo(OMeta,{ 2 | "before":function(){var $elf=this,_fromIdx=this.input.idx;return this._apply("sample")}, 3 | "sample":function(){var $elf=this,_fromIdx=this.input.idx;return (function(){this._form((function(){return (function(){this._applyWithArgs("exactly","atrules");return this._form((function(){return (function(){this._applyWithArgs("exactly","atkeyword");return this._applyWithArgs("exactly","sample")}).call(this)}))}).call(this)}));return ["raw","* { color: red }"]}).call(this)}})} 4 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.0.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['s', ' ']], 6 | ['atrulers', 7 | ['s', ' '], 8 | ['ruleset', 9 | ['selector', 10 | ['simpleselector', 11 | ['ident', 's'], 12 | ['s', ' ']]], 13 | ['block', 14 | ['s', ' '], 15 | ['declaration', 16 | ['property', 17 | ['ident', 'p'], 18 | ['s', ' ']], 19 | ['value', 20 | ['s', ' '], 21 | ['ident', 'v'], 22 | ['s', ' ']]]]], 23 | ['s', ' ']]] -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "cssp", 3 | "description" : "CSSP — Ometa-JS based CSS parser", 4 | "version" : "1.0.7", 5 | "homepage": "http://github.com/css/cssp", 6 | "author" : "Sergey Kryzhanovsky (http://github.com/afelix)", 7 | "repository" : { 8 | "type" : "git", 9 | "url" : "http://github.com/css/cssp.git" 10 | }, 11 | "directories" : { "lib" : "./lib" }, 12 | "main" : "./lib/csspapi", 13 | "dependencies" : { "ometajs" : "~ 3.1.x" }, 14 | "bin" : "./bin/cssp", 15 | "engines" : { "node" : ">=0.4.0" }, 16 | "licenses" : [ { "type" : "MIT" } ] 17 | } 18 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.s.5.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['s', ' '], 5 | ['dimension', 6 | ['number', '10'], 7 | ['ident', 'px']], 8 | ['s', ' '], 9 | ['operator', ','], 10 | ['s', ' '], 11 | ['string', ''test''], 12 | ['s', ' '], 13 | ['funktion', 14 | ['ident', 'test'], 15 | ['functionBody', 16 | ['s', ' '], 17 | ['ident', 'x'], 18 | ['s', ' ']]], 19 | ['s', ' '], 20 | ['operator', ','], 21 | ['s', ' '], 22 | ['percentage', 23 | ['number', '89']], 24 | ['s', ' ']]] 25 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.1.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's'], 5 | ['s', ' ']]], 6 | ['block', 7 | ['s', ' '], 8 | ['declaration', 9 | ['property', 10 | ['ident', 'p0'], 11 | ['s', ' ']], 12 | ['value', 13 | ['s', ' '], 14 | ['ident', 'v0'], 15 | ['s', ' ']]], 16 | ['decldelim'], 17 | ['s', ' '], 18 | ['declaration', 19 | ['property', 20 | ['ident', 'p1'], 21 | ['s', ' ']], 22 | ['value', 23 | ['s', ' '], 24 | ['ident', 'v1'], 25 | ['s', ' ']]]]] 26 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.0.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['comment', 'test']], 6 | ['atrulers', 7 | ['comment', 'test'], 8 | ['ruleset', 9 | ['selector', 10 | ['simpleselector', 11 | ['ident', 's'], 12 | ['comment', 'test']]], 13 | ['block', 14 | ['comment', 'test'], 15 | ['declaration', 16 | ['property', 17 | ['ident', 'p'], 18 | ['comment', 'test']], 19 | ['value', 20 | ['comment', 'test'], 21 | ['ident', 'v'], 22 | ['comment', 'test']]]]], 23 | ['comment', 'test']]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.4.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['clazz', 5 | ['ident', 'test']], 6 | ['s', ' ']]], 7 | ['block', 8 | ['s', ' 9 | '], 10 | ['filter', 11 | ['property', 12 | ['ident', 'filter']], 13 | ['filterv', 14 | ['progid', 15 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']]]], 16 | ['decldelim'], 17 | ['s', ' 18 | '], 19 | ['declaration', 20 | ['property', 21 | ['ident', 'color']], 22 | ['value', 23 | ['ident', 'red'], 24 | ['s', ' 25 | ']]]]] 26 | -------------------------------------------------------------------------------- /test/data/test_funktion/function.c.5.p: -------------------------------------------------------------------------------- 1 | ['funktion', 2 | ['ident', 'test'], 3 | ['functionBody', 4 | ['comment', 'test'], 5 | ['dimension', 6 | ['number', '10'], 7 | ['ident', 'px']], 8 | ['comment', 'test'], 9 | ['operator', ','], 10 | ['comment', 'test'], 11 | ['string', ''test''], 12 | ['comment', 'test'], 13 | ['funktion', 14 | ['ident', 'test'], 15 | ['functionBody', 16 | ['comment', 'test'], 17 | ['ident', 'x'], 18 | ['comment', 'test']]], 19 | ['comment', 'test'], 20 | ['operator', ','], 21 | ['comment', 'test'], 22 | ['percentage', 23 | ['number', '89']], 24 | ['comment', 'test']]] 25 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.s.1.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['s', ' '], 6 | ['ident', 'x'], 7 | ['s', ' '], 8 | ['ident', 'y'], 9 | ['s', ' ']], 10 | ['atrulers', 11 | ['s', ' '], 12 | ['ruleset', 13 | ['selector', 14 | ['simpleselector', 15 | ['ident', 's'], 16 | ['s', ' ']]], 17 | ['block', 18 | ['s', ' '], 19 | ['declaration', 20 | ['property', 21 | ['ident', 'p'], 22 | ['s', ' ']], 23 | ['value', 24 | ['s', ' '], 25 | ['ident', 'v'], 26 | ['s', ' ']]]]], 27 | ['s', ' ']]] -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.5.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['clazz', 5 | ['ident', 'test']]]], 6 | ['block', 7 | ['declaration', 8 | ['property', 9 | ['ident', 'color']], 10 | ['value', 11 | ['ident', 'red']]], 12 | ['decldelim'], 13 | ['filter', 14 | ['property', 15 | ['ident', 'filter']], 16 | ['filterv', 17 | ['progid', 18 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/transparent-border.png',sizingMethod='scale')']], 19 | ['progid', 20 | ['raw', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod='test')']]]]]] 21 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.1.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's'], 5 | ['comment', 'test']]], 6 | ['block', 7 | ['comment', 'test'], 8 | ['declaration', 9 | ['property', 10 | ['ident', 'p0'], 11 | ['comment', 'test']], 12 | ['value', 13 | ['comment', 'test'], 14 | ['ident', 'v0'], 15 | ['comment', 'test']]], 16 | ['decldelim'], 17 | ['comment', 'test'], 18 | ['declaration', 19 | ['property', 20 | ['ident', 'p1'], 21 | ['comment', 'test']], 22 | ['value', 23 | ['comment', 'test'], 24 | ['ident', 'v1'], 25 | ['comment', 'test']]]]] 26 | -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.2.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['s', ' '], 6 | ['ident', 'x'], 7 | ['operator', ','], 8 | ['s', ' '], 9 | ['ident', 'y'], 10 | ['s', ' '], 11 | ['funktion', 12 | ['ident', 'f'], 13 | ['functionBody', 14 | ['number', '1'], 15 | ['unary', '+'], 16 | ['number', '2']]], 17 | ['s', ' ']], 18 | ['atrulers', 19 | ['ruleset', 20 | ['selector', 21 | ['simpleselector', 22 | ['ident', 's']]], 23 | ['block', 24 | ['declaration', 25 | ['property', 26 | ['ident', 'p']], 27 | ['value', 28 | ['ident', 'v']]]]]]] 29 | -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.s.2.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['s', ' '], 5 | ['ident', 'x'], 6 | ['s', ' '], 7 | ['operator', ','], 8 | ['s', ' '], 9 | ['ident', 'y'], 10 | ['s', ' '], 11 | ['funktion', 12 | ['ident', 'x'], 13 | ['functionBody', 14 | ['s', ' '], 15 | ['number', '1'], 16 | ['s', ' '], 17 | ['unary', '+'], 18 | ['s', ' '], 19 | ['number', '2'], 20 | ['s', ' ']]], 21 | ['s', ' '], 22 | ['block', 23 | ['s', ' '], 24 | ['declaration', 25 | ['property', 26 | ['ident', 'p'], 27 | ['s', ' ']], 28 | ['value', 29 | ['s', ' '], 30 | ['ident', 'v'], 31 | ['s', ' ']]]]] 32 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.s.3.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's0'], 5 | ['s', ' ']], 6 | ['delim'], 7 | ['simpleselector', 8 | ['s', ' '], 9 | ['ident', 's1'], 10 | ['s', ' ']]], 11 | ['block', 12 | ['s', ' '], 13 | ['declaration', 14 | ['property', 15 | ['ident', 'p0'], 16 | ['s', ' ']], 17 | ['value', 18 | ['s', ' '], 19 | ['ident', 'v0'], 20 | ['s', ' ']]], 21 | ['decldelim'], 22 | ['s', ' '], 23 | ['declaration', 24 | ['property', 25 | ['ident', 'p1'], 26 | ['s', ' ']], 27 | ['value', 28 | ['s', ' '], 29 | ['ident', 'v1'], 30 | ['s', ' ']]]]] -------------------------------------------------------------------------------- /test/data/test_atruler/atruler.c.1.p: -------------------------------------------------------------------------------- 1 | ['atruler', 2 | ['atkeyword', 3 | ['ident', 'media']], 4 | ['atrulerq', 5 | ['comment', 'test'], 6 | ['ident', 'x'], 7 | ['comment', 'test'], 8 | ['ident', 'y'], 9 | ['comment', 'test']], 10 | ['atrulers', 11 | ['comment', 'test'], 12 | ['ruleset', 13 | ['selector', 14 | ['simpleselector', 15 | ['ident', 's'], 16 | ['comment', 'test']]], 17 | ['block', 18 | ['comment', 'test'], 19 | ['declaration', 20 | ['property', 21 | ['ident', 'p'], 22 | ['comment', 'test']], 23 | ['value', 24 | ['comment', 'test'], 25 | ['ident', 'v'], 26 | ['comment', 'test']]]]], 27 | ['comment', 'test']]] -------------------------------------------------------------------------------- /test/data/test_stylesheet/stylesheet.s.1.p: -------------------------------------------------------------------------------- 1 | ['stylesheet', 2 | ['ruleset', 3 | ['selector', 4 | ['simpleselector', 5 | ['ident', 's0'], 6 | ['s', ' ']]], 7 | ['block', 8 | ['s', ' 9 | '], 10 | ['declaration', 11 | ['property', 12 | ['ident', 'p0']], 13 | ['value', 14 | ['s', ' '], 15 | ['ident', 'v0'], 16 | ['s', ' 17 | ']]]]], 18 | ['s', ' 19 | 20 | '], 21 | ['ruleset', 22 | ['selector', 23 | ['simpleselector', 24 | ['ident', 's1'], 25 | ['s', ' ']]], 26 | ['block', 27 | ['s', ' 28 | '], 29 | ['declaration', 30 | ['property', 31 | ['ident', 'p1']], 32 | ['value', 33 | ['s', ' '], 34 | ['ident', 'v1'], 35 | ['s', ' 36 | ']]]]]] 37 | -------------------------------------------------------------------------------- /test/data/test_ruleset/ruleset.c.3.p: -------------------------------------------------------------------------------- 1 | ['ruleset', 2 | ['selector', 3 | ['simpleselector', 4 | ['ident', 's0'], 5 | ['comment', 'test']], 6 | ['delim'], 7 | ['simpleselector', 8 | ['comment', 'test'], 9 | ['ident', 's1'], 10 | ['comment', 'test']]], 11 | ['block', 12 | ['comment', 'test'], 13 | ['declaration', 14 | ['property', 15 | ['ident', 'p0'], 16 | ['comment', 'test']], 17 | ['value', 18 | ['comment', 'test'], 19 | ['ident', 'v0'], 20 | ['comment', 'test']]], 21 | ['decldelim'], 22 | ['comment', 'test'], 23 | ['declaration', 24 | ['property', 25 | ['ident', 'p1'], 26 | ['comment', 'test']], 27 | ['value', 28 | ['comment', 'test'], 29 | ['ident', 'v1'], 30 | ['comment', 'test']]]]] -------------------------------------------------------------------------------- /test/data/test_atruleb/atruleb.c.2.p: -------------------------------------------------------------------------------- 1 | ['atruleb', 2 | ['atkeyword', 3 | ['ident', 'test']], 4 | ['comment', 'test'], 5 | ['ident', 'x'], 6 | ['comment', 'test'], 7 | ['operator', ','], 8 | ['comment', 'test'], 9 | ['ident', 'y'], 10 | ['comment', 'test'], 11 | ['funktion', 12 | ['ident', 'x'], 13 | ['functionBody', 14 | ['comment', 'test'], 15 | ['number', '1'], 16 | ['comment', 'test'], 17 | ['unary', '+'], 18 | ['comment', 'test'], 19 | ['number', '2'], 20 | ['comment', 'test']]], 21 | ['comment', 'test'], 22 | ['block', 23 | ['comment', 'test'], 24 | ['declaration', 25 | ['property', 26 | ['ident', 'p'], 27 | ['comment', 'test']], 28 | ['value', 29 | ['comment', 'test'], 30 | ['ident', 'v'], 31 | ['comment', 'test']]]]] 32 | --------------------------------------------------------------------------------