crass
crass copied to clipboard
A Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification.
Native browser support for css nesting is becoming quite widespread - https://caniuse.com/css-nesting It appears that crass ignores nested rules. Would it be possible to support the nested syntax?
I think it would be good to add two more values to style_rule node. block_start amd block_end ```rb css = :style_rule, :selector=> {:node=>:selector, :value=>"body", :tokens=> [{:node=>:ident, :pos=>0, :raw=>"body", :value=>"body"}, {:node=>:whitespace,...