premailer / css_parser

Ruby CSS Parser
Other
279 stars 110 forks source link

Fix a block with no media query after a block with a media query. #57

Closed mattparlane closed 8 years ago

mattparlane commented 9 years ago

Hi there...

It looks like css_parser is setting media_types to [] rather than [:all] when a block with no media query follows a block with a media query, which as far as I know is valid CSS.

This pull request solves my immediate problem, but this may well not be the best way to fix it -- I won't be offended if you rewrite it. :)

Cheers,

Matt

mattparlane commented 9 years ago

Ok, I just realised that #52 is the exact same bug. I'll leave this here, you can choose whichever fix is best. :D

akzhan commented 8 years ago

52 preferred