PreMailer.Net
                                
                                
                                
                                    PreMailer.Net copied to clipboard
                            
                            
                            
                        Two same CSS properties on same dom element does not work
This code is perfectly valid CSS:
 .emailsender {
    font-size: medium;
    font-size: max(16px, 1rem);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%; width: 100%;
}
but because there are two of the same properties (font-size), Premailer will only take the second one and ignore the first one.
Hi @seawerst
Are you expecting it do add both for a graceful fallback when max is not supported?
Thanks!
@jasekiw Yes, and I understand that this is not a simple ask, the CssAttributeCollection class has a key uniqueness build into it.
@seawerst The part that I'm thinking about is how many entries for a property should be inlined? CSS properties can be overridden many times. Including them all could cause the size of the email to inflate. I imagine there needs to be some sort of cutoff if the library were to be changed to allow this functionality.