Open ccorcos opened 8 years ago
I was under the impression that !important
changes the precedence for cascading rules and that it was out-of-spec to include !important
in an inline style (i.e. that premailer is already doing the right thing according to CSS2 spec).
Out of curiosity, is there a specific problem you're trying to solve by including !important
in the style=""
attribute? I would think that in most cases it would have no impact and I think it may actually introduce new problems in some buggy email clients.
Gmail doesnt respect "display: none" unless there is an inline !important
tag. This is important for us because we're using the checkbox hack to get accordions in emails
It looks like it supports them to me. Otherwise #170 wouldn't be a thing. Also, this duplicates #150
hmm
Premailer currently doesnt inline important styles.
I've tried going through the course and figuring out why this doesnt work, but its harder than I thought!