Open earshinov opened 2 years ago
For example:
import premailer html = """ <html> <style type="text/css"> img { height: auto !important; } </style> <body> <img src="https://via.placeholder.com/200x200" style="height: 400px;"></img> </body> </html> """ print(premailer.transform(html)) #<html> # <head></head><body> # <img src="https://via.placeholder.com/200x200" style="height:400px" height="400"> # </body> #</html>
Expected result - !important takes precedence:
!important
<img src="https://via.placeholder.com/200x200" style="height:auto" height="auto">
❌ Actual result - inline style takes precedence:
<img src="https://via.placeholder.com/200x200" style="height:400px" height="400">
Version information:
>>> premailer.__version__ '3.10.0'
For example:
Expected result -
!important
takes precedence:❌ Actual result - inline style takes precedence:
Version information: