I imagine this problem lay with the Emogrifier library code rather than the Drupal module specifically. I am using Emogrifier with HTMLMail to convert my @imported CSS file into inline styles for all of the elements in an HTML email. When I set a "height" rule for any div or img elements and then check this in the email client, the style has been converted into "min-height" instead of expected "height." Other styles apply to these elements normally (e.g. width, border, padding, etc), it is, strangely, only this "height" property that is translating incorrectly. This is problematic in particular because I am trying to overwrite the height attribute that Drupal natively outputs in the HTML img tag, and this is impossible to do with min-height.

Comments

pillarsdotnet’s picture

noted.

pillarsdotnet’s picture

Status: Active » Postponed (maintainer needs more info)

A case-insensitive search for "height" yields zero matches in both the emogrifier module and the downloaded emogrifier library.

A search for "min" in both places yields only comments and the /admin/ paths.

Can you write a unit test that demonstrates the bug?

Also please report the exact version of PHP and of the PHP DOM extension you are using. Perhaps the bug only affects certain versions.