css_parser icon indicating copy to clipboard operation
css_parser copied to clipboard

[QUESTION] Same property with diferent size units

Open marocas opened this issue 7 years ago • 3 comments

Hello, im starting to use rem instead of px, and i found that with premailer, the style inline only goes with rem units, is there a way to have the fallback to px on the inline version, since some emails like outlook don't use rem?

Exemple: h1{ font-size:32px; font-size:3.2rem; }

It only uses the font-size: 3.2rem, it would be good to use both.

#305

Thanks in advance, Mário Silva.

marocas avatar Feb 22 '17 12:02 marocas

Any development on this question?

marocas avatar Aug 08 '18 11:08 marocas

can try pinging someone who worked on areas around rems if there are any ... or dive into the code to see how it's handled

grosser avatar Aug 08 '18 11:08 grosser

In fact, every property that can have multiple units, can have the fallback to px. Saying this:

font-size: 0px;
font-size: 0em;
font-size: 0rem;
font-size: 0pt;

line-height: 0px;
line-height: 0em;
line-height: 0rem;
line-height: 0pt;

padding: 0px;
padding: 0em;
padding: 0rem;
padding: 0pt;

margin: 0px;
margin: 0em;
margin: 0rem;
margin: 0pt;

I don't know ruby, I already been looking to the code but still didn't find the place where equal keys are striped out.

marocas avatar Aug 09 '18 09:08 marocas