You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
Currently, we do a lot of processing to make HTML parts safe. One of these is to use premailer to inline any CSS found in <style> tags so that email styles don't interfere with the UI.
However, this breaks things like media queries and we have to be careful not to load external styles.
We could use <iframe>s with the srcdoc attribute to allow normal <style> tag operation with media queries and such which would mean fewer styling issues with HTML parts.
The text was updated successfully, but these errors were encountered:
Actually, I'm wondering if we could just set the iframes to 80vh (or something similar) with scrollbars enabled which can then be turned off with the same JS that resizes the iframe.
I think this would be fine as most emails only have one MIME part displaying at a time.
Currently, we do a lot of processing to make HTML parts safe. One of these is to use premailer to inline any CSS found in
<style>
tags so that email styles don't interfere with the UI.However, this breaks things like media queries and we have to be careful not to load external styles.
We could use
<iframe>
s with thesrcdoc
attribute to allow normal<style>
tag operation with media queries and such which would mean fewer styling issues with HTML parts.The text was updated successfully, but these errors were encountered: