Skip to content

Commit 908db28

Browse files
committed
Add test demonstrating the problem of baseline alignment of checkboxes
DEVSIX-3429
1 parent 5f39dd7 commit 908db28

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/test/java/com/itextpdf/html2pdf/css/DisplayTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,12 @@ public void displayInlineBlockYLineTest06() throws IOException, InterruptedExcep
309309
convertToPdfAndCompare("displayInlineBlockYLineTest06", sourceFolder, destinationFolder);
310310
}
311311

312+
@Test
313+
// TODO Fix cmp after DEVSIX-3429 is implemented. The checkbox should become aligned with the baseline of the text
314+
public void displayInlineBlockYLineTest07() throws IOException, InterruptedException {
315+
convertToPdfAndCompare("displayInlineBlockYLineTest07", sourceFolder, destinationFolder);
316+
}
317+
312318
@Test
313319
public void displayNoneImportant01() throws IOException, InterruptedException {
314320
convertToPdfAndCompare("displayNoneImportant01", sourceFolder, destinationFolder);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<body>
5+
<div style="width: 200px">
6+
<div style="display: inline-block; background-color: red; width: 50px; height: 50px; margin-bottom: 20px;"></div>
7+
<input style="display: inline-block; margin-bottom: 20px;" type="checkbox"/>
8+
9+
<label style="display: inline-block; margin-bottom: 20px;">Hello world</label>
10+
</div>
11+
</body>
12+
13+
</html>

0 commit comments

Comments
 (0)