Skip to content

Commit 06fc7cf

Browse files
SnipxiText-CI
authored andcommitted
Add a new test demonstrating a bug with handling text-decoration CSS property
DEVSIX-2532 Autoported commit. Original commit hash: [a8ea2af1]
1 parent d93fc4f commit 06fc7cf

File tree

4 files changed

+14
-37
lines changed

4 files changed

+14
-37
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/TextDecorationTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,13 @@ public virtual void TextDecoration03Test() {
8484
public virtual void TextDecoration04Test() {
8585
ConvertToPdfAndCompare("textDecorationTest04", sourceFolder, destinationFolder);
8686
}
87+
88+
/// <exception cref="System.IO.IOException"/>
89+
/// <exception cref="System.Exception"/>
90+
[NUnit.Framework.Test]
91+
public virtual void TextDecoration05Test() {
92+
// TODO DEVSIX-2532
93+
ConvertToPdfAndCompare("textDecorationTest05", sourceFolder, destinationFolder);
94+
}
8795
}
8896
}
Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,5 @@
1-
<!DOCTYPE html>
2-
<html dir="ltr" lang="en">
3-
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5-
<style>
6-
.u {text-decoration:underline}
7-
.o {text-decoration:overline}
8-
.lt {text-decoration:line-through}
9-
.n {text-decoration:none}
10-
.i {text-decoration:inherit}
11-
</style>
12-
</head>
13-
<body>
14-
<div class="u">
15-
<p>1. div with 'underline'</p>
16-
<p class="o">2. paragraph in div with 'overline'<span class="lt">span in paragraph with 'line-through'<span class="n">span in span with 'none'</span></span></p>
17-
<span class="n">2. span in div with 'none'</span><br>
18-
<br>
19-
<br>
20-
<br>
21-
<div class="o">
22-
<p>2. div in div with 'overline'</p>
23-
<p class="n">3. p in div with 'none'<span class="lt">span in paragraph with 'line-through'</span></p>
24-
<span class="lt">3. span in div with 'line-through'</span><br>
25-
<br>
26-
<br>
27-
<br>
28-
<div class="n">
29-
<p>3. div in div in div with 'none'</p>
30-
<p class="lt">4. paragraph in div with 'line-through'</p>
31-
<span class="lt">4. span in div with 'line-through'<span class="u">span in span with 'underline'</span></span>
32-
</div>
33-
</div>
34-
</div>
35-
</body>
36-
</html>
1+
<!doctype html><html>
2+
<body style="color:rgba(255, 0, 0, 1);text-decoration:underline">
3+
<div style="color:rgba(0, 0, 0, 1)">
4+
<div>Text</div>
5+
</div></body></html>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
09e113c47d846f731c0590647e2b4e949d4ebd9d
1+
a8ea2af1fbeb1335ca758aa57f3fd84d0ae2d54b

0 commit comments

Comments
 (0)