Skip to content

Commit 0696c83

Browse files
SnipxiText-CI
authored andcommitted
Add test demonstrating the problem of baseline alignment of checkboxes
DEVSIX-3429 Autoported commit. Original commit hash: [908db288]
1 parent 8790735 commit 0696c83

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/DisplayTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ public virtual void DisplayInlineBlockYLineTest06() {
285285
ConvertToPdfAndCompare("displayInlineBlockYLineTest06", sourceFolder, destinationFolder);
286286
}
287287

288+
[NUnit.Framework.Test]
289+
public virtual void DisplayInlineBlockYLineTest07() {
290+
// TODO Fix cmp after DEVSIX-3429 is implemented. The checkbox should become aligned with the baseline of the text
291+
ConvertToPdfAndCompare("displayInlineBlockYLineTest07", sourceFolder, destinationFolder);
292+
}
293+
288294
[NUnit.Framework.Test]
289295
public virtual void DisplayNoneImportant01() {
290296
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>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5f39dd7a56ccd39f66edd2f9c9f68701b5ef0c18
1+
908db288a1720230f09f1952879bd336e08d5606

0 commit comments

Comments
 (0)