Open chaitanyagupta opened 4 years ago
I am using premailer 3.6.1. I noticed that !important is stripped out even from stylesheets that are meant to be ignored:
!important
premailer.transform('<html><head><style data-premailer="ignore">.wrapper { width: 100% !important; }</style><body></body></html>') '<html><head><style>.wrapper { width: 100%; }</style></head><body></body></html>'
When I set strip_important=False, it is not stripped out as expected. But I don't think this should be required in a stylesheet that premailer is supposed to ignore.
strip_important=False
Makes sense. Do you think you can add a unit test and a fix for it?
I will try to do this sometime soon. At the moment, strip_important=False workaround works well enough for me.
I am using premailer 3.6.1. I noticed that
!important
is stripped out even from stylesheets that are meant to be ignored:When I set
strip_important=False
, it is not stripped out as expected. But I don't think this should be required in a stylesheet that premailer is supposed to ignore.