We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1db61 commit 1c60494Copy full SHA for 1c60494
1 file changed
PreMailer.Net/PreMailer.Net.Tests/PreMailerTests.cs
@@ -188,6 +188,23 @@ public void MoveCssInline_ImportantFlag_HonorsImportantFlagInline()
188
Assert.Contains("<div style=\"color: red", premailedOutput.Html);
189
}
190
191
+ [Fact]
192
+ public void MoveCssInline_ImportantFlag_PreservesImportantInInlineStylesForDifferentProperties()
193
+ {
194
+ string input = @"<style>
195
+.test {
196
+ color:red;
197
+ }
198
+ </style>
199
+<body>
200
+<p class=""test"" style=""font-weight: bold !important;"">test</p>
201
+</body>";
202
+
203
+ var premailedOutput = PreMailer.MoveCssInline(input);
204
205
+ Assert.Contains("font-weight: bold !important", premailedOutput.Html);
206
207
208
[Fact]
209
public void MoveCssInline_AbsoluteBackgroundUrl_ShouldNotBeCleanedAsComment()
210
{
0 commit comments