We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example:
Expected result -
!important
takes precedence:❌ Actual result - inline style takes precedence:
Version information:
The text was updated successfully, but these errors were encountered: