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

It's still early in development. I have started and wanted to share my progress in case you have some imitate feedback. Also I have some questions With the existion parser...

I have a css rule with `:not(.asd, .ass)` and it becomes separated into two different rule_sets. I worked around it in my project by removing the space, `:not(.asd, .ass)` =>...

Not sure what the general strategy is in this gem for handling invalid CSS, but the behaviour changed between 1.7.1 and 1.8.0. ``` html = {"line-height"=>"!important"}}} ``` In 1.8.0: ```...

Issue https://github.com/premailer/css_parser/issues/87 Checks if any border-*side* declaration is present, as it should have been removed by `create_dimensions_shorthand!` , if there is still one left it means it's not shortable and...

My client bought an email template that I'm trying to inline into our emails using premailer. The template has the following css in it ``` .bb { border-bottom: 1px solid;...

How do I access all rules that have a background?

Hello, im starting to use rem instead of px, and i found that with premailer, the style inline only goes with rem units, is there a way to have the...

Some browsers and email clients have trouble with 3-character hex codes: https://litmus.com/blog/background-colors-html-email We can help by making sure that any 3-character hex code is turned into the 6-character equivalent. See...

Currently, parsing doesn't work properly for CSS rules with multiline URL values. Here's what happens: ```ruby font_face = "@font-face {\n src: url(https://example.com/font.woff2), \n url(https://example.com/font.woff); } \n" CssParser::Parser.new.tap { |parser| parser.add_block!(font_face)...