-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
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
CSS improvements #45
CSS improvements #45
Conversation
caseyjhol
commented
Sep 28, 2023
•
edited
Loading
edited
- Don't escape HTML when decoding (fixes Child selector styles not being applied #44)
- Don't load remote stylesheets (aligns with upstream MJML functionality)
@FelixSchwarz I'm trying to upgrade to css-inline v0.11.0 to take advantage of performance improvements added in v0.10.x, but it requires using the |
Btw, I’d be curious how much the update improves performance in your scenario - I have very few benchmarks so it would be cool to learn about real life effect of all that performance changes :) |
@Stranger6667 Just to consider all options, how feasible would it be to add back support for Python v3.6 to css-inline? |
@caseyjhol Supporting Python 3.6 requires downgrading |
I think we can make a point that css inlining is only support for Python >= 3.7. We are still using mjml in production with Python 3.6 - probably until RHEL 7 support ends and I can justify spending on mjml-python more easily if we can use mjml in our infrastructure. However we don't need css inlining for the Python 3.6 deployment, so this PR seems like a good reason to raise that requirement. I would release the next version as 0.10.0 as this is kind of a breaking change for Python 3.6 users but everyone needs to upgrade at some point. |
That makes sense to me (to lock CSS support to Python 3.7 starting in v0.10.0). If we get someone requesting Python 3.6 CSS inlining support, we can reconsider a different approach. If we want to be really granular about it, we could release my CSS fixes in v0.9.2 (so Python 3.6 users could still use that version for CSS support). And then we could follow-up with a css-inline upgrade in v0.10.0. I think that probably makes sense. I'll split that out into a separate PR (#46). |
@FelixSchwarz Any thoughts here? These are the last items preventing from moving forward with a prototype for some users. Thanks! |
Your branch contains some "wip-like" commits. I tried to extract the meaningful changes but I'm always getting some test failures locally. May I ask you to rebase/squash your commits on top of the latest main? I don't have any objections to code, so this just about getting your changes to apply (and a cleaned-up commit history). |
Sure - can clean those up now. I'm used to doing a bunch of commits and then just doing a squash/merge. |
3d9e8c9
to
0f0e0bf
Compare
Thank you. Are there more features you would like to add or should we just release version 0.10? |
I think that's it for now - I'm good with a 0.10.0 release. Thanks! |