Skip to content

Commit 79258a9

Browse files
committed
Test letter-spacing and word-spacing for text fields
DEVSIX-7076
1 parent 8be6ccf commit 79258a9

File tree

9 files changed

+34
-0
lines changed

9 files changed

+34
-0
lines changed

src/test/java/com/itextpdf/html2pdf/element/FormTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,16 @@ public void textFieldStrikethroughTest() throws IOException, InterruptedExceptio
340340
runTest("textFieldStrikethrough");
341341
}
342342

343+
@Test
344+
public void textFieldLetterSpacingTest() throws IOException, InterruptedException {
345+
runTest("textFieldLetterSpacing");
346+
}
347+
348+
@Test
349+
public void textFieldWordSpacingTest() throws IOException, InterruptedException {
350+
runTest("textFieldWordSpacing");
351+
}
352+
343353
private void runTest(String name) throws IOException, InterruptedException {
344354
runTest(name, true);
345355
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
</head>
6+
7+
<body>
8+
<div style="letter-spacing:30px">
9+
<label>Label Label</label>
10+
<input type="text" style="letter-spacing:30px" value="text text">
11+
</div>
12+
</body></html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
</head>
6+
7+
<body>
8+
<div style="word-spacing:30px">
9+
<label>Label Label</label>
10+
<input type="text" style="word-spacing:30px" value="text text">
11+
</div>
12+
</body></html>

0 commit comments

Comments
 (0)