Closed mitio closed 8 years ago
thx, 1.4.0 is out!
Just fyi, I had been working on a fix for this today, and a background shorthand with size cannot be read by yahoo mail. Not sure if you guys are worried about those kind of vendor-specific issues though.
@mkigikm I think that when you "compact" a bunch of properties into their shorthand, you should try to comply with the standards, meaning that if there's a background-size, you should put it there (unless you make it important in which case it will stay as a standalone one).
The
background
property supports background size in addition to the other long-form properties. When we have a separatebackground-size
property and when we create a shorthand version, we must include thebackground-size
in the shorthand by preceding it with a slash:/
and vice versa—when we’re parsing a shorthand property, we must look for and fetch thebackground-size
before we extractbackground-position
as otherwise it might be ambiguous.This should fix premailer/premailer#252 and premailer/premailer#216.