jonkemp/gulp-inline-css

Doesn´t inline "...!important" styles

dimoooooooon opened this issue · 7 comments

width: 100% !important;
converts to
width: 100%

This is a known issue. Juice has the same functionality. It does inline the important style and throws the non-important one out.

Note: The styles have to match exactly for this to happen. For example:

margin: 0 !important; doesn't override margin-bottom: 10px.

+1. I added display:none !important; but it printed just display:none;

is there any chance to get it there?

This is not something that's planned. I don't even understand what the benefit is here.

this is for when you create email templates then some email-clients ignore display:none but not display:none !important

This will work in the next update.