css_parser icon indicating copy to clipboard operation
css_parser copied to clipboard

Ruby CSS Parser

Results 24 css_parser issues
Sort by recently updated
recently updated
newest added

I started to to try to clean up the Parser class. I have more to come, just want to open the MR if so I can get some feedback

I am looking at fixing a bug when paring css with selector `div.not(.a, .b)`. The Problem is that in RuleSet we parse the selector. https://github.com/stoivo/css_parser/blob/935308c5955b57a2d826d99ae7291902deccdcd5/lib/css_parser/rule_set.rb#L453-L462 We do two different operations...

I am looking to try to remove the use of regex and wonder if we can remove if feature completely `CssParser.convert_uris` https://github.com/premailer/css_parser/blob/ab52436dbe238faeffffd0d08710f567c84fcf69/lib/css_parser.rb#L128-L156 It as added 17 years ago https://github.com/premailer/css_parser/commit/4215785086d550bff69596ee04b63984b7c36c04. I...

Thank you for providing this great library. I was just able to leverage it to parse CSS and convert it into [Glimmer DSL for CSS](https://github.com/AndyObtiva/glimmer-dsl-css) Ruby syntax: https://github.com/AndyObtiva/glimmer-dsl-css?tab=readme-ov-file#css-to-glimmer-converter https://github.com/AndyObtiva/glimmer-dsl-css/blob/master/lib/glimmer/css/css_to_glimmer_converter.rb I...