CssToInlineStyles icon indicating copy to clipboard operation
CssToInlineStyles copied to clipboard

Merging of Attributes

Open DemigodCode opened this issue 2 years ago • 0 comments

I've done a port of Bootstrap-Email (https://github.com/bootstrap-email/bootstrap-email) to PHP.

There's some different behavior between this package and the ruby inlining package.

If I have lets say:

.btn { border: 1px solid transparent; } .btn-colored { border-color: #fff; }

I would expect the ruby result:

border: 1px solid #fff;

What this package generates:

border: 1px solid transparent; border-color: #fff

That will lead to a broken button without border in Outlook and it's duplicated anyway with "transparent" AND "#fff".

Any thoughts?

DemigodCode avatar Jun 15 '22 10:06 DemigodCode